html, body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #ebe4d8;
    color: #18313a;
    margin: 0;
}

:root {
    --ink: #18313a;
    --muted: #6f695d;
    --panel: rgba(255, 251, 244, 0.82);
    --line: rgba(24, 49, 58, 0.12);
    --accent: #1f5f6b;
    --accent-deep: #153d45;
    --gold: #d6b36b;
}

a, .btn-link { color: var(--accent); }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    border-color: var(--accent-deep);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--accent-deep), #0e2a30);
    border-color: #0e2a30;
    color: #fff;
}

.btn-outline-secondary {
    border-color: rgba(24, 49, 58, 0.22);
    color: var(--ink);
}

.btn-outline-secondary:hover {
    background: rgba(24, 49, 58, 0.07);
    color: var(--ink);
    border-color: rgba(24, 49, 58, 0.3);
}

.btn:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(31, 95, 107, 0.25);
}

h1:focus { outline: none; }

h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    margin: 0;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Page shell ── */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; min-width: 0; }

.sidebar {
    background: linear-gradient(180deg, #153d45 0%, #18313a 52%, #2d261d 100%);
}

/* ── Top bar ── */
.top-row {
    background: rgba(255, 251, 244, 0.72);
    border-bottom: 1px solid rgba(24, 49, 58, 0.12);
    justify-content: space-between;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    backdrop-filter: blur(14px);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.top-row-brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.ops-logo {
    height: 7.6rem;
    width: auto;
    flex-shrink: 0;
}

.shell-tagline {
    font-size: 1.2rem;
    color: #18313a;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.shell-tagline small {
    display: block;
    font-size: 0.68rem;
    color: var(--muted);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.status-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: #d6b36b;
    box-shadow: 0 0 0 0.35rem rgba(214, 179, 107, 0.2);
    display: inline-block;
    flex-shrink: 0;
}

.shell-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.88rem;
}

/* ── Content ── */
.content {
    padding: 1.5rem 2rem 3rem;
}

/* ── Cards & panels ── */
.hero-panel,
.app-card,
.metric-card,
.pill-card,
.team-card,
.service-card {
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(23, 48, 57, 0.08);
    background: var(--panel);
    backdrop-filter: blur(16px);
    border-radius: 1.4rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1.4rem;
    padding: 1.6rem;
    margin-bottom: 1.5rem;
}

.splash-hero {
    min-height: 480px;
    align-items: center;
    grid-template-columns: minmax(0, 760px);
    padding: 3rem 2.5rem;
}

.splash-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    margin-bottom: 0.9rem;
    line-height: 1.15;
}

.hero-kicker, .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16rem;
    font-size: 0.72rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hero-panel h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin-bottom: 0.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.5rem;
}

.tag-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* ── Grids ── */
.content-grid, .service-grid, .team-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ── Card types ── */
.app-card, .service-card, .team-card { padding: 1.6rem; }

.service-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.18s;
}

.service-card:hover { transform: translateY(-2px); }

.service-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(31, 95, 107, 0.15), rgba(21, 61, 69, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    flex-shrink: 0;
}

.service-icon svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: var(--accent);
}

.service-card h3 { font-size: 1.1rem; color: var(--ink); }

.pill-card, .metric-card { padding: 1rem; }

.pill-card span, .metric-card span, .metric-card small, .subtle-copy {
    color: var(--muted);
    font-size: 0.92rem;
}

.pill-card strong, .metric-card strong {
    display: block;
    font-size: 1.5rem;
    color: var(--ink);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ── Tags ── */
.status-tag, .mini-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(31, 95, 107, 0.12);
    color: var(--accent-deep);
    font-size: 0.8rem;
}

.gold-tag {
    background: rgba(214, 179, 107, 0.22);
    color: #6c4d11;
}

/* ── Dividers ── */
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
    display: block;
}

/* ── Team / About card ── */
.team-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.team-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: Georgia, serif;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.team-photo {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--gold);
}

.team-name { font-size: 1.5rem; color: var(--ink); margin-bottom: 0.2rem; }

.team-title {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.career-item {
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--gold);
    background: rgba(214, 179, 107, 0.07);
    border-radius: 0 0.6rem 0.6rem 0;
    margin-bottom: 0.65rem;
}

.career-item h4 { font-size: 0.95rem; color: var(--ink); margin-bottom: 0.15rem; }
.career-org { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 0.1rem; }
.career-dur { font-size: 0.78rem; color: var(--muted); }

.edu-item {
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--accent);
    background: rgba(31, 95, 107, 0.06);
    border-radius: 0 0.6rem 0.6rem 0;
    margin-bottom: 0.65rem;
}

.edu-item h4 { font-size: 0.95rem; color: var(--ink); margin-bottom: 0.15rem; }
.edu-school { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 0.1rem; }
.edu-years { font-size: 0.78rem; color: var(--muted); }

/* ── Contact ── */
.contact-form label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid rgba(24, 49, 58, 0.2);
    background: rgba(255, 251, 244, 0.9);
    border-radius: 0.6rem;
    color: var(--ink);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(31, 95, 107, 0.25);
    border-color: var(--accent);
    background: #fff;
}

/* ── Footer ── */
footer.site-footer {
    background: linear-gradient(135deg, #153d45 0%, #18313a 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 2.5rem 2rem 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

footer .footer-logo { height: 3.5rem; width: auto; margin-bottom: 0.75rem; }
footer h4 {
    color: white;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
}

footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 0.4rem; }
footer ul li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.88rem;
}
footer ul li a:hover { color: rgba(255, 255, 255, 0.9); }

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0 0 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ── Sidebar nav ── */
.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.35rem;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked { background-color: rgba(255, 255, 255, 0.5); }

.sidebar .side-toprow {
    min-height: 7.6rem;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    position: relative;
}

.navbar-brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    white-space: normal;
    padding: 0.5rem 0;
    text-decoration: none;
}

.brand-logo { height: 5rem; width: auto; flex-shrink: 0; }

.brand-tagline {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.67rem;
    line-height: 1.35;
    white-space: normal;
}

.nav-section-header {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    padding: 0.5rem 1rem 0.25rem;
}

.nav-item { font-size: 0.9rem; padding-bottom: 0.25rem; }
.nav-item:first-of-type { padding-top: 0.5rem; }

.nav-item .nav-link {
    color: #d7d7d7;
    background: none;
    border: none;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
    text-decoration: none;
    transition: background 0.15s;
}

.nav-item .nav-link.active { background-color: rgba(255, 255, 255, 0.22); color: white; }
.nav-item .nav-link:hover { background-color: rgba(255, 255, 255, 0.1); color: white; }

.nav-icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    background-size: cover;
}

.ni-home {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.ni-services {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M.102 2.223A3.004 3.004 0 0 0 3.78 5.897l6.341 6.252A3.003 3.003 0 0 0 13 16a3 3 0 1 0-.851-5.878L5.897 3.781A3.004 3.004 0 0 0 2.223.1l2.141 2.142L4 4l-1.757.364L.102 2.223zm13.37 9.019.528.026.287.445.445.287.026.528L15 13l-.242.447-.026.528-.445.287-.287.445-.528.026L13 15l-.447-.242-.528-.026-.287-.445-.445-.287-.026-.528L11 13l.242-.447.026-.528.445-.287.287-.445.528-.026L13 11l.447.242z'/%3E%3C/svg%3E");
}

.ni-about {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}

.ni-contact {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z'/%3E%3C/svg%3E");
}

.nav-scrollable { display: none; }
.navbar-toggler:checked ~ .nav-scrollable { display: block; }

/* ── Responsive ── */
@media (min-width: 641px) {
    .page { flex-direction: row; }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
    }

    .top-row { position: sticky; top: 0; z-index: 10; }
    .content { padding-left: 2rem; padding-right: 2rem; }
    .navbar-toggler { display: none; }

    .nav-scrollable {
        display: block;
        height: calc(100vh - 7.6rem);
        overflow-y: auto;
    }
}

@media (max-width: 1100px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .hero-panel,
    .content-grid,
    .service-grid,
    .metric-grid,
    .footer-grid { grid-template-columns: 1fr; }

    .team-card { grid-template-columns: 1fr; }

    .splash-hero { min-height: auto; padding: 2rem 1.5rem; }

    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 640px) {
    .content { padding: 1rem; }
    .top-row { padding-left: 1rem; padding-right: 4.5rem; }
}
