:root {
    --brand-950: #081423;
    --brand-900: #0f2034;
    --brand-700: #1e3a5a;
    --accent: #0ea5a4;
    --accent-strong: #0891b2;
    --paper: #f3f7fb;
    --text: #0e1f31;
    --muted: #4f6173;
    --line: #d8e3ef;
    --radius: 14px;
    --shadow-sm: 0 6px 18px rgba(9, 23, 42, 0.06);
    --shadow-lg: 0 22px 45px rgba(8, 20, 35, 0.14);
    --hero-glow: rgba(39, 211, 191, 0.38);
    --main-offset: 0px;
}

* { box-sizing: border-box; }
img { max-width: 100%; display: block; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Avenir Next", "Montserrat", "Trebuchet MS", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background:
        radial-gradient(1300px 520px at 88% -10%, rgba(14, 165, 164, 0.17), transparent 58%),
        radial-gradient(900px 380px at -10% 8%, rgba(56, 189, 248, 0.12), transparent 56%),
        linear-gradient(180deg, #f7fbff 0%, #ecf3fb 42%, #edf4fb 100%);
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1rem; }
main { min-height: calc(100vh - 220px); padding-top: var(--main-offset); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.66rem 1.1rem;
    border-radius: 11px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 160ms ease, box-shadow 180ms ease, background-color 160ms ease, border-color 160ms ease;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-primary {
    color: #fff;
    background: linear-gradient(130deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 10px 24px rgba(14, 165, 164, 0.28);
}
.btn-dark {
    background: linear-gradient(130deg, #10263f 0%, #17395d 100%);
    color: #fff;
    box-shadow: 0 9px 20px rgba(15, 32, 52, 0.26);
}
.btn-outline {
    border-color: #c8d5e4;
    background: rgba(255, 255, 255, 0.82);
    color: #1d3551;
}
.btn-icon {
    min-width: 2.2rem;
    min-height: 2.2rem;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: 0.5rem !important; }
.mt-sm { margin-top: 0.75rem !important; }
.mt-md { margin-top: 1rem !important; }
.pt-sm { padding-top: 0.8rem !important; }
.pt-md { padding-top: 1.2rem !important; }
.card-compact { padding: 0.6rem !important; }
.alert-dismiss {
    float: right;
}
.auth-main {
    max-width: 460px;
    margin: 2rem auto;
}
.img-preview {
    max-width: 140px;
    height: auto;
    border-radius: 0.5rem;
}
.img-preview-grid {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.45rem;
}
.inline-checkbox {
    display: block;
    margin-top: 0.5rem;
}
.inline-checkbox-sm {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.86rem;
}
.text-muted-small {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #475569;
}
.hero-title-xl {
    font-size: 2.4rem;
    margin: 0;
}
.hero-copy-max {
    max-width: 700px;
}
.mt-0 { margin-top: 0 !important; }
.grid-mt { margin-top: 1rem !important; }

.badge { display: inline-flex; padding: 0.25rem 0.5rem; border-radius: 999px; font-size: 0.75rem; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef9c3; color: #854d0e; }

.card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 200ms ease;
    position: relative;
    overflow: hidden;
}
.card > .media {
    max-width: 100%;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #b9cde2;
}

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 4.4rem 0;
    background:
        radial-gradient(620px 240px at 75% 16%, rgba(45, 212, 191, 0.44), rgba(45, 212, 191, 0) 70%),
        linear-gradient(130deg, #0a1a2d 0%, #103a59 52%, #0c223c 100%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -100px auto;
    width: 440px;
    height: 440px;
    border-radius: 999px;
    background: radial-gradient(circle, var(--hero-glow) 0%, rgba(14, 165, 164, 0) 70%);
    pointer-events: none;
}
.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 2.95rem);
    line-height: 1.12;
    max-width: 900px;
    letter-spacing: -0.02em;
}
.hero p {
    max-width: 760px;
    color: rgba(229, 246, 255, 0.96);
    margin: 0.95rem 0 1.4rem;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(7, 19, 33, 0.88);
    color: #fff;
    border-bottom: 1px solid rgba(184, 212, 236, 0.12);
    backdrop-filter: blur(8px);
}
.navbar.scrolled {
    box-shadow: 0 10px 24px rgba(8, 20, 35, 0.24);
}
.nav-wrap { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 0.85rem 0; }
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.brand-logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(184, 211, 233, 0.85);
    border-radius: 0.58rem;
    padding: 0.2rem 0.45rem;
    box-shadow: 0 6px 16px rgba(7, 20, 33, 0.2);
}
.brand-logo {
    width: auto;
    height: 2rem;
    max-width: 170px;
}
.brand-name {
    color: rgba(241, 251, 255, 0.96);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.2;
}
.brand-mark {
    width: 1.7rem;
    height: 1.7rem;
    display: inline-grid;
    place-items: center;
    border-radius: 0.55rem;
    color: #07233a;
    background: linear-gradient(135deg, #5eead4 0%, #7dd3fc 100%);
    box-shadow: 0 6px 14px rgba(45, 212, 191, 0.36);
    font-size: 0.88rem;
}
.nav-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 202, 229, 0.45);
    background: rgba(18, 46, 71, 0.7);
    color: #e7f6ff;
    border-radius: 0.6rem;
    padding: 0.42rem 0.7rem;
    font-weight: 700;
    cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transition: transform 160ms ease, opacity 160ms ease;
}
.nav-toggle-icon {
    position: relative;
}
.nav-toggle-icon::before {
    position: absolute;
    top: -6px;
    left: 0;
}
.nav-toggle-icon::after {
    position: absolute;
    top: 6px;
    left: 0;
}
.nav-toggle.is-open {
    background: rgba(39, 103, 150, 0.62);
}
.nav-toggle.is-open .nav-toggle-icon {
    background: transparent;
}
.nav-toggle.is-open .nav-toggle-icon::before {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-icon::after {
    transform: translateY(-6px) rotate(-45deg);
}
.nav-links a {
    position: relative;
    padding: 0.28rem 0.44rem;
    color: rgba(240, 251, 255, 0.95);
    font-weight: 600;
    border-radius: 8px;
    transition: color 160ms ease, background-color 160ms ease;
}
.nav-links a:hover {
    color: #fff;
    background: rgba(156, 191, 221, 0.15);
}
.nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 0.42rem;
    right: 0.42rem;
    bottom: -0.28rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4ade80 0%, #22d3ee 100%);
}

.section { padding: 2.7rem 0; }
.section-title {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    margin: 0 0 1rem 0;
    letter-spacing: -0.01em;
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.625rem; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #516476;
}
.table tbody tr:hover {
    background: rgba(227, 239, 249, 0.46);
}

.input, .textarea, .select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    padding: 0.64rem 0.78rem;
    font-size: 0.95rem;
    background: #fff;
    color: #10263b;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input:focus, .textarea:focus, .select:focus {
    outline: 0;
    border-color: #6ba8dc;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; gap: 0.875rem; margin-bottom: 0.9rem; }

.alert {
    border: 1px solid #bae6fd;
    background: #e0f2fe;
    color: #075985;
    padding: 0.75rem 0.875rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 18px rgba(7, 89, 133, 0.1);
}
.alert-error { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.alert button {
    border: 0;
    border-radius: 6px;
    padding: 0.1rem 0.4rem;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
    background: linear-gradient(180deg, #0b1e32 0%, #102a44 100%);
    color: #fff;
    padding: 1rem;
    border-right: 1px solid rgba(156, 190, 220, 0.18);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar h3 {
    margin-top: 0.4rem;
    margin-bottom: 1rem;
}
.sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(184, 211, 233, 0.75);
    border-radius: 0.5rem;
    padding: 0.18rem 0.35rem;
}
.sidebar-logo {
    width: auto;
    height: 1.35rem;
    max-width: 108px;
}
.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}
.admin-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 202, 229, 0.45);
    background: rgba(18, 46, 71, 0.7);
    color: #e7f6ff;
    border-radius: 0.55rem;
    padding: 0.35rem 0.62rem;
    font-weight: 700;
    cursor: pointer;
}
.admin-nav-icon,
.admin-nav-icon::before,
.admin-nav-icon::after {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transition: transform 160ms ease, opacity 160ms ease;
}
.admin-nav-icon {
    position: relative;
}
.admin-nav-icon::before {
    position: absolute;
    top: -5px;
    left: 0;
}
.admin-nav-icon::after {
    position: absolute;
    top: 5px;
    left: 0;
}
.sidebar.is-open .admin-nav-icon {
    background: transparent;
}
.sidebar.is-open .admin-nav-icon::before {
    transform: translateY(5px) rotate(45deg);
}
.sidebar.is-open .admin-nav-icon::after {
    transform: translateY(-5px) rotate(-45deg);
}
.sidebar-links {
    display: block;
}
.sidebar a {
    display: block;
    padding: 0.5rem 0.62rem;
    border-radius: 0.55rem;
    margin-bottom: 0.28rem;
    color: rgba(236, 249, 255, 0.96);
    border: 1px solid transparent;
}
.sidebar a:hover {
    background: rgba(130, 175, 212, 0.16);
    border-color: rgba(130, 175, 212, 0.28);
}
.main {
    padding: 1rem;
    background: linear-gradient(180deg, rgba(243, 248, 253, 0.8) 0%, rgba(235, 243, 251, 0.88) 100%);
}

.footer {
    background:
        radial-gradient(500px 200px at 80% -20%, rgba(45, 212, 191, 0.2), transparent 70%),
        linear-gradient(130deg, #0d1d31 0%, #10263f 100%);
    color: #cbd5e1;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(148, 185, 217, 0.2);
}
.footer h4 {
    margin-bottom: 0.5rem;
    color: #f4fbff;
}
.footer a {
    color: #d6e8f8;
}
.footer a:hover {
    color: #ffffff;
}

.media {
    width: 100%;
    max-width: 100%;
    border-radius: inherit;
    display: block;
    object-position: center;
    background:
        linear-gradient(100deg, rgba(216, 229, 242, 0.7) 30%, rgba(235, 243, 251, 0.96) 45%, rgba(216, 229, 242, 0.7) 60%),
        #d7e6f5;
    background-size: 220% 100%;
    animation: media-shimmer 1.25s linear infinite;
}
.media.is-loaded {
    animation: none;
    background: transparent;
}
.media-project {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.media-team {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-team-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-frame {
    width: 100%;
    max-width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0.6rem;
    margin-bottom: 0.7rem;
    background: rgba(240, 248, 255, 0.92);
}
.media-frame-project {
    height: 220px;
}
.media-frame-logo {
    height: 95px;
    background: rgba(240, 248, 255, 0.9);
}
.media-frame-team {
    height: 170px;
}
.media-frame-team-large {
    height: 220px;
}

.scroll-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 45;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(130, 169, 204, 0.6);
    border-radius: 999px;
    background: rgba(14, 31, 49, 0.87);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 12px 25px rgba(8, 20, 35, 0.28);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}
.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(240, 248, 255, 0.92);
    margin-bottom: 1rem;
}
.carousel-track {
    position: relative;
    width: 100%;
    height: min(58vw, 460px);
    min-height: 240px;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}
.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.carousel.is-slide .carousel-track {
    display: flex;
    transition: transform 360ms ease;
    will-change: transform;
}
.carousel.is-slide .carousel-slide {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    opacity: 1;
    pointer-events: auto;
}
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: rgba(226, 238, 250, 0.85);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(12, 34, 55, 0.68);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    pointer-events: auto;
}
.carousel-btn-prev { left: 10px; }
.carousel-btn-next { right: 10px; }
.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    z-index: 4;
}
.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}
.carousel-dot.is-active {
    background: #fff;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 400ms ease, transform 420ms ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 1.2rem;
    align-items: center;
}
.home-hero-cta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.home-hero-panel {
    background: linear-gradient(135deg, rgba(16, 52, 80, 0.86) 0%, rgba(12, 37, 57, 0.7) 100%);
    color: #e6f6ff;
    border: 1px solid rgba(145, 197, 230, 0.25);
}
.home-hero-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}
.home-hero-kpis small {
    display: block;
    color: #a8cbdf;
    margin-bottom: 0.2rem;
}
.home-hero-kpis strong {
    display: block;
    line-height: 1.3;
}

.home-proof-strip {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.home-proof-strip .card {
    text-align: center;
    padding: 0.85rem 0.6rem;
}
.home-proof-strip strong {
    display: block;
    font-size: 1.35rem;
    color: #15314a;
}
.home-proof-strip span {
    color: #5a7083;
    font-size: 0.86rem;
}

.home-feature-project {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    align-items: center;
}
.home-feature-media {
    height: clamp(220px, 34vw, 360px);
}
.home-chip {
    display: inline-flex;
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(14, 165, 164, 0.14);
    color: #0f5d67;
    border: 1px solid rgba(14, 165, 164, 0.25);
}

.home-timeline {
    display: grid;
    gap: 0.8rem;
}
.home-timeline-item {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 0.8rem;
    align-items: start;
}
.home-timeline-date {
    border-radius: 10px;
    text-align: center;
    font-weight: 800;
    background: linear-gradient(130deg, #0f2842 0%, #1d486c 100%);
    color: #e9f7ff;
    padding: 0.65rem 0.4rem;
}

.home-client-carousel {
    max-width: 1120px;
    margin: 0 auto;
}
.home-client-carousel .carousel-track {
    height: auto;
    min-height: 0;
}
.home-client-carousel .carousel-slide {
    display: block;
    padding: 0.6rem;
}
.home-client-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.home-client-carousel .home-client-card {
    width: 100%;
    min-height: 230px;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 0.6rem;
    align-items: start;
}
.home-client-card h3 {
    margin: 0;
}
.client-avatar {
    width: 84px;
    height: 84px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.85rem;
    font-weight: 800;
    color: #14456c;
    background: linear-gradient(145deg, #c8def1 0%, #e2effb 100%);
    border: 1px solid #b9d1e7;
}
.client-meta {
    font-size: 0.85rem;
    color: #60788d;
}

.page-hero {
    padding: 1.5rem 0 0.9rem;
}
.page-hero .card {
    padding: 1.4rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 249, 255, 0.95) 100%);
}
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3b5e78;
    background: rgba(120, 169, 208, 0.18);
    border: 1px solid rgba(120, 169, 208, 0.25);
    border-radius: 999px;
    padding: 0.18rem 0.62rem;
    margin-bottom: 0.45rem;
}
.lead {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 75ch;
}
.split-panels {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.2fr 0.8fr;
}
.empty-state {
    text-align: center;
    padding: 1.4rem 1rem;
    border: 1px dashed #b8cfe4;
    background: linear-gradient(160deg, rgba(235, 245, 252, 0.8) 0%, rgba(248, 252, 255, 0.96) 100%);
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}
.section-head p {
    margin: 0;
    color: #516779;
    max-width: 62ch;
}
.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}
.kpi-row .card {
    padding: 0.85rem;
}
.kpi-row strong {
    display: block;
    font-size: 1.2rem;
    color: #14314c;
}
.kpi-row span {
    color: #5b7387;
    font-size: 0.85rem;
}
.projects-shell {
    display: grid;
    gap: 1rem;
}
.projects-filter {
    position: sticky;
    top: 78px;
    z-index: 8;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(242, 248, 255, 0.96) 100%);
}
.projects-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.8rem;
    align-items: end;
}
.projects-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.projects-result-note {
    margin: 0.7rem 0 0;
    color: #5a6f81;
    font-size: 0.9rem;
}
.projects-status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
.projects-status-card {
    text-align: center;
    padding: 0.85rem;
}
.projects-status-card strong {
    display: block;
    font-size: 1.5rem;
    color: #123250;
    line-height: 1.2;
}
.projects-status-label {
    color: #597286;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.project-spotlight {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    align-items: center;
}
.project-card-clean h3 {
    margin-top: 0.2rem;
}
.project-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
    margin: 0.35rem 0;
    color: #577089;
}
.projects-lanes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}
.projects-lane h3 {
    margin-top: 0;
    margin-bottom: 0.55rem;
}
.projects-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}
.projects-mini-list li {
    border: 1px solid #d9e6f3;
    border-radius: 0.6rem;
    padding: 0.55rem 0.6rem;
    background: rgba(245, 250, 255, 0.8);
}
.projects-mini-list a {
    display: block;
    font-weight: 700;
    color: #173b5b;
}
.projects-mini-list small {
    color: #5f7789;
}
.projects-muted {
    color: #5f7789;
}
.project-timeline-simple {
    display: grid;
    gap: 0.75rem;
}
.project-timeline-node {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 0.8rem;
    align-items: center;
}
.project-detail-shell {
    display: grid;
    gap: 1rem;
}
.project-detail-top-meta {
    margin-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: #5a7186;
    font-size: 0.9rem;
}
.project-detail-top-meta span:not(.badge) {
    padding: 0.24rem 0.6rem;
    border-radius: 999px;
    background: rgba(219, 233, 246, 0.7);
    border: 1px solid #c9ddee;
}
.project-gallery-carousel {
    margin-bottom: 0.3rem;
}
.project-gallery-carousel .carousel-track {
    height: clamp(220px, 38vw, 360px);
    min-height: 220px;
}
.project-gallery-carousel .carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-detail-grid {
    align-items: start;
}
.project-detail-main h2,
.project-detail-main h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
}
.project-detail-main h3 {
    margin-top: 1rem;
}
.project-detail-aside {
    border: 1px solid #d8e6f3;
    border-radius: 0.8rem;
    padding: 0.9rem;
    background: linear-gradient(165deg, rgba(245, 251, 255, 0.95) 0%, rgba(236, 245, 253, 0.9) 100%);
}
.project-detail-aside h3 {
    margin-top: 0;
}
.project-detail-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.9rem;
}
.contact-shell {
    align-items: start;
}
.contact-form-card h3,
.contact-info-card h3 {
    margin-top: 0;
}
.contact-form {
    display: grid;
    gap: 0.15rem;
}
.contact-info-card .meta-list strong {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}
.meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px dashed #d6e3f0;
    padding-bottom: 0.35rem;
}
.meta-list strong { color: #17324a; }

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}
.admin-toolbar h1 {
    margin: 0;
}
.admin-search {
    width: min(340px, 100%);
}
.admin-list-card {
    padding: 0.7rem;
    overflow-x: auto;
}
.admin-list-card .table {
    background: transparent;
    min-width: 760px;
}
.stack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.quick-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
}
.quick-stat-grid .card h3 {
    margin: 0;
    font-size: 0.92rem;
    color: #486278;
}
.quick-stat-grid .card p {
    margin: 0.5rem 0 0;
    font-size: 1.38rem;
    font-weight: 800;
    color: #152e46;
}

@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr; }
    .sidebar {
        display: block;
        position: static;
        height: auto;
    }
    .admin-nav-toggle {
        display: inline-flex;
    }
    .sidebar h3 {
        margin: 0;
    }
    .sidebar-links {
        display: none;
        margin-top: 0.75rem;
    }
    .sidebar.is-open .sidebar-links {
        display: block;
    }
    .home-hero-grid,
    .home-feature-project {
        grid-template-columns: 1fr;
    }
    .home-proof-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .kpi-row {
        grid-template-columns: 1fr;
    }
    .split-panels {
        grid-template-columns: 1fr;
    }
    .projects-filter {
        position: static;
    }
    .projects-filter-grid {
        grid-template-columns: 1fr;
    }
    .projects-status-strip,
    .projects-lanes {
        grid-template-columns: 1fr;
    }
    .project-spotlight,
    .project-timeline-node {
        grid-template-columns: 1fr;
    }
    .project-gallery-carousel .carousel-track {
        height: clamp(220px, 44vw, 320px);
        min-height: 220px;
    }
    .home-client-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-client-carousel .carousel-track {
        height: auto;
        min-height: 0;
    }
    .admin-list-card .table {
        min-width: 680px;
    }
}

@media (max-width: 760px) {
    .navbar {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
    }
    .container {
        padding: 0 0.75rem;
    }
    .section {
        padding: 2rem 0;
    }
    .hero {
        padding: 3.2rem 0;
    }
    .hero h1 {
        font-size: clamp(1.7rem, 8vw, 2.15rem);
    }
    .hero p {
        margin: 0.75rem 0 1rem;
    }
    .card {
        padding: 0.85rem;
    }
    .nav-wrap {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .nav-links {
        display: none;
        gap: 0.35rem;
        flex-wrap: nowrap;
        flex-direction: column;
        width: 100%;
        margin-top: 0.55rem;
        background: rgba(10, 30, 47, 0.96);
        border: 1px solid rgba(110, 156, 190, 0.38);
        border-radius: 0.75rem;
        padding: 0.42rem;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-links a {
        width: 100%;
        padding: 0.48rem 0.55rem;
    }
    .nav-links a.is-active::after {
        display: none;
    }
    .home-proof-strip {
        grid-template-columns: 1fr;
    }
    .home-hero-cta .btn {
        width: 100%;
    }
    .home-timeline-item {
        grid-template-columns: 1fr;
    }
    .home-timeline-date {
        width: fit-content;
        min-width: 94px;
    }
    .home-client-grid {
        grid-template-columns: 1fr;
    }
    .home-client-carousel .carousel-track {
        height: auto;
        min-height: 0;
    }
    .projects-filter-actions .btn {
        width: 100%;
    }
    .meta-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .media-frame {
        height: 180px;
    }
    .media-frame-project {
        height: 190px;
    }
    .media-frame-team,
    .media-frame-team-large {
        height: 200px;
    }
    .carousel-track {
        min-height: 210px;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    .project-gallery-carousel .carousel-track {
        height: 220px;
        min-height: 220px;
    }
    .project-timeline-node .btn {
        width: 100%;
    }
    .project-detail-actions .btn {
        width: 100%;
    }
    .contact-form .btn {
        width: 100%;
    }
    .contact-info-card .meta-list li {
        padding-bottom: 0.5rem;
    }
    .admin-list-card .table {
        min-width: 100%;
        border-collapse: separate;
        border-spacing: 0 0.55rem;
    }
    .admin-list-card .table thead {
        display: none;
    }
    .admin-list-card .table tbody tr {
        display: block;
        border: 1px solid #d6e4f1;
        border-radius: 0.7rem;
        background: rgba(247, 252, 255, 0.95);
        padding: 0.45rem 0.65rem;
        box-shadow: 0 4px 14px rgba(11, 34, 57, 0.06);
    }
    .admin-list-card .table tbody tr.is-collapsible-row {
        cursor: pointer;
    }
    .admin-list-card .table tbody tr.is-collapsible-row td {
        display: none;
    }
    .admin-list-card .table tbody tr.is-collapsible-row td:nth-child(-n+2) {
        display: flex;
    }
    .admin-list-card .table tbody tr.is-collapsible-row.is-open td {
        display: flex;
    }
    .admin-list-card .table tbody tr.is-collapsible-row td.stack-actions {
        display: none;
    }
    .admin-list-card .table tbody tr.is-collapsible-row.is-open td.stack-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .admin-list-card .table tbody td {
        border: 0;
        padding: 0.36rem 0;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .admin-list-card .table tbody td::before {
        content: attr(data-label);
        display: inline-block;
        min-width: 0;
        font-size: 0.75rem;
        font-weight: 700;
        color: #536b80;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        line-height: 1.2;
    }
    .admin-list-card .table tbody td .stack-actions,
    .admin-list-card .table tbody td form {
        width: 100%;
    }
    .admin-list-card .table tbody tr.is-static-row td {
        display: block;
        padding: 0.2rem 0;
    }
    .admin-list-card .table tbody tr.is-static-row td::before {
        content: none;
    }
}

@media (max-width: 560px) {
    .brand-link {
        font-size: 0.95rem;
    }
    .brand-logo-chip {
        padding: 0.16rem 0.34rem;
    }
    .brand-logo {
        height: 1.55rem;
        max-width: 120px;
    }
    .brand-name {
        font-size: 0.82rem;
        max-width: 160px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand-mark {
        width: 1.5rem;
        height: 1.5rem;
    }
    .home-hero-kpis {
        grid-template-columns: 1fr;
    }
    .page-hero .card {
        padding: 1rem;
    }
    .section-title {
        font-size: 1.25rem;
    }
    .lead {
        font-size: 0.94rem;
    }
    .home-client-card {
        min-height: 200px;
    }
    .project-gallery-carousel .carousel-track {
        height: 200px;
        min-height: 200px;
    }
    .contact-form-card,
    .contact-info-card {
        padding: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * {
        animation: none !important;
        transition: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

.top-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
}
.top-loader::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2dd4bf 0%, #22d3ee 50%, #60a5fa 100%);
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.45);
    transition: width 260ms ease, opacity 200ms ease;
    opacity: 0;
}
.top-loader.is-active::before {
    width: 72%;
    opacity: 1;
}
.top-loader.is-finishing::before {
    width: 100%;
    opacity: 1;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: grid;
    place-items: center;
    background: rgba(9, 22, 36, 0.38);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
    pointer-events: none;
}
.page-loader.is-active {
    opacity: 1;
    visibility: visible;
}
.page-loader__dot {
    width: 56px;
    aspect-ratio: 1;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    animation: spin 780ms linear infinite;
}

.btn.is-loading,
button.is-loading,
input[type="submit"].is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn.is-loading::after,
button.is-loading::after,
input[type="submit"].is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-top: -7px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-top-color: #ffffff;
    animation: spin 640ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes media-shimmer {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

@keyframes marquee-x {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 0.4rem)); }
}
