/* =============================================================================
   HADI TECHNOLOGIES — DESIGN SYSTEM
   Token-first CSS layered on top of Bootstrap 5.
   Aesthetic: Pan-African Editorial Tech — navy authority, cream warmth,
   sky-blue data, sharp red intention. Glassmorphism, gradient meshes,
   editorial serif display.
   ========================================================================== */

:root {
    /* Brand palette ---------------------------------------------------- */
    --navy:       #003049;
    --navy-deep:  #001c2c;
    --navy-soft:  #0a3f5c;
    --cream:      #fcf0d5;
    --cream-2:    #f4e2b6;
    --sky:        #43b0f1;
    --sky-soft:   #6dc1f4;
    --red:        #c1131f;
    --red-soft:   #d83947;
    --amber:      #f7b21e;
    --emerald:    #1a8a73;
    --emerald-soft: #2aa48b;

    /* Bootstrap CSS-var overrides ------------------------------------- */
    --bs-primary:        var(--red);
    --bs-primary-rgb:    193, 19, 31;
    --bs-secondary:      var(--navy);
    --bs-secondary-rgb:  0, 48, 73;
    --bs-link-color:     var(--red);
    --bs-link-hover-color: var(--navy);
    --bs-body-bg:        var(--cream);
    --bs-body-color:     var(--navy);
    --bs-body-font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    --bs-body-font-size: 16px;
    --bs-body-line-height: 1.6;

    /* Typography ------------------------------------------------------- */
    --display: "Fraunces", "Times New Roman", serif;
    --sans:    "DM Sans", system-ui, sans-serif;
    --mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

    /* Spacing scale ---------------------------------------------------- */
    --s-1: clamp(0.5rem, 1vw, 0.75rem);
    --s-2: clamp(1rem, 2vw, 1.5rem);
    --s-3: clamp(2rem, 4vw, 3rem);
    --s-4: clamp(3rem, 7vw, 6rem);
    --s-5: clamp(5rem, 12vw, 9rem);

    /* Glass + elevation ----------------------------------------------- */
    --glass-bg:     rgba(252, 240, 213, 0.08);
    --glass-border: rgba(252, 240, 213, 0.18);
    --glass-blur:   saturate(180%) blur(22px);
    --shadow-sm:    0 6px 16px -8px rgba(0,28,44,0.25);
    --shadow:       0 22px 50px -25px rgba(0,28,44,0.35);
    --shadow-lg:    0 35px 80px -28px rgba(0,28,44,0.45);

    --measure: 64ch;
}

/* ===================== RESETS / BASE ===================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--cream);
    color: var(--navy);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1100;
    opacity: 0.04;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
    mix-blend-mode: multiply;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: inherit;
}
.display-1, .display-2, .display-3 {
    font-family: var(--display);
    font-variation-settings: "opsz" 144;
    letter-spacing: -0.035em;
    line-height: 0.92;
}
.h-serif-italic { font-family: var(--display); font-style: italic; font-weight: 300; }

a { color: var(--red); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--navy); }

/* ===================== UTILITIES ========================================= */
.text-display   { font-family: var(--display); }
.text-mono      { font-family: var(--mono); }
.text-navy      { color: var(--navy) !important; }
.text-cream     { color: var(--cream) !important; }
.text-sky       { color: var(--sky) !important; }
.text-red       { color: var(--red) !important; }
.bg-navy        { background: var(--navy) !important; color: var(--cream); }
.bg-navy-deep   { background: var(--navy-deep) !important; color: var(--cream); }
.bg-cream       { background: var(--cream) !important; color: var(--navy); }
.bg-cream-2     { background: var(--cream-2) !important; color: var(--navy); }
.bg-red         { background: var(--red) !important; color: var(--cream); }
.bg-sky         { background: var(--sky) !important; color: var(--navy); }

/* Kicker (uppercase tracking label) */
.kicker {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
}
.kicker::before {
    content: "";
    width: 30px; height: 1px;
    background: var(--red);
}
.kicker-sky { color: var(--sky); }
.kicker-sky::before { background: var(--sky); }
.kicker-cream { color: var(--cream); }
.kicker-cream::before { background: var(--cream); }

/* Red emphasis bar under a single word */
.red-rule {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.red-rule::after {
    content: "";
    position: absolute;
    left: -2%; right: -2%; bottom: 12%;
    height: 0.42em;
    background: var(--red);
    z-index: -1;
    transform: skewX(-4deg);
}

/* Editorial italic emphasis */
em.it-em { font-family: var(--display); font-style: italic; font-weight: 300; color: var(--cream-2); }

/* ===================== GLASS CARDS ======================================= */
.glass {
    background: rgba(252, 240, 213, 0.08);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.glass:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(252,240,213,0.32); }
.glass-light {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0,48,73,0.1);
    box-shadow: var(--shadow-sm);
}
.glass-light:hover { background: rgba(255,255,255,0.9); transform: translateY(-4px); box-shadow: var(--shadow); }

/* Soft rounded card */
.card-soft {
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0,48,73,0.08);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.card-soft:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

/* ===================== BUTTONS =========================================== */
.btn {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: var(--cream);
    box-shadow: 0 14px 32px -10px rgba(193,19,31,0.45);
}
.btn-primary:hover {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(193,19,31,0.55);
}
.btn-outline-cream {
    background: transparent;
    border-color: var(--cream);
    color: var(--cream);
}
.btn-outline-cream:hover { background: var(--cream); color: var(--navy); }

.btn-outline-navy {
    background: transparent;
    border-color: var(--navy);
    color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--cream); }

.btn-arrow::after {
    content: "→";
    font-family: var(--display);
    font-size: 1.1rem;
    margin-left: 0.15rem;
    transition: transform 0.2s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ===================== NAV / MEGA MENU =================================== */
.ht-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(252, 240, 213, 0.72);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(0,48,73,0.08);
    padding: 0.85rem 0;
    transition: background 0.3s ease, padding 0.3s ease;
}
.ht-nav.is-scrolled {
    background: rgba(255, 252, 242, 0.92);
    padding: 0.65rem 0;
    box-shadow: 0 4px 18px -8px rgba(0,28,44,0.18);
}
.ht-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.ht-brand {
    display: flex; align-items: center; gap: 0.7rem;
    font-family: var(--display); font-weight: 500; font-size: 1.1rem;
    color: var(--navy); letter-spacing: -0.012em;
}
.ht-brand:hover { color: var(--navy-deep); }
.ht-brand svg { width: 34px; height: 38px; }

.ht-nav-links {
    display: flex; align-items: center; gap: 2.2rem;
    margin: 0; padding: 0; list-style: none;
}
.ht-nav-links > li > a, .ht-nav-links > li > .ht-megabtn {
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: none; border: none; padding: 0.4rem 0;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}
.ht-nav-links > li > a:hover, .ht-nav-links > li:hover > .ht-megabtn { color: var(--red-soft); }
.ht-nav-links > li > a::after, .ht-nav-links > li > .ht-megabtn::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -4px;
    height: 2px; background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.ht-nav-links > li > a:hover::after,
.ht-nav-links > li:hover > .ht-megabtn::after { transform: scaleX(1); }

.ht-mega {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 50%; transform: translateX(-50%) translateY(8px);
    background: rgba(255, 252, 242, 0.95);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(0,48,73,0.1);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    padding: 1.6rem;
    width: max-content; max-width: 720px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1100;
}
.ht-nav-links > li.has-mega { position: relative; }
.ht-nav-links > li.has-mega:hover .ht-mega,
.ht-nav-links > li.has-mega:focus-within .ht-mega {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.ht-mega-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    min-width: 600px;
}
.ht-mega-item {
    padding: 1rem; border-radius: 14px;
    display: block; color: var(--navy);
    transition: background 0.2s ease;
}
.ht-mega-item:hover { background: rgba(0,48,73,0.05); color: var(--navy); }
.ht-mega-item .icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display); font-weight: 500; font-size: 1.1rem;
    margin-bottom: 0.6rem;
    box-shadow: var(--shadow-sm);
}
.ht-mega-item .icon.red     { background: linear-gradient(135deg, var(--red) 0%, var(--red-soft) 100%); }
.ht-mega-item .icon.sky     { background: linear-gradient(135deg, var(--sky) 0%, #2e9bdf 100%); }
.ht-mega-item .icon.emerald { background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-soft) 100%); }
.ht-mega-item .title {
    font-family: var(--display); font-weight: 500; font-size: 1rem; margin-bottom: 0.25rem;
}
.ht-mega-item .desc {
    font-size: 0.82rem; line-height: 1.5; opacity: 0.7;
}

.ht-nav-cta { display: flex; align-items: center; gap: 0.6rem; }

/* Mobile nav toggle */
.ht-mobile-toggle {
    display: none;
    border: none; background: none;
    width: 40px; height: 40px;
    color: var(--navy);
    font-size: 1.4rem;
}
@media (max-width: 980px) {
    .ht-nav-links { display: none; }
    .ht-mobile-toggle { display: inline-block; }
    .ht-nav-cta .btn-text { display: none; }
}
/* Mobile drawer */
.ht-mobile-drawer {
    position: fixed; top: 0; right: -100%;
    width: 86%; max-width: 380px; height: 100vh;
    background: var(--navy);
    color: var(--cream);
    padding: 5rem 2rem 2rem;
    z-index: 1200;
    transition: right 0.35s ease;
    overflow-y: auto;
}
.ht-mobile-drawer.is-open { right: 0; }
.ht-mobile-drawer a {
    display: block; padding: 1rem 0; color: var(--cream);
    border-bottom: 1px solid rgba(252,240,213,0.12);
    font-family: var(--display); font-size: 1.6rem;
}
.ht-mobile-drawer a:hover { color: var(--cream-2); }
.ht-mobile-drawer .close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: none; border: none; color: var(--cream); font-size: 2rem;
}

/* ===================== HERO ============================================== */
.ht-hero {
    position: relative;
    background: var(--navy);
    color: var(--cream);
    padding: 11rem 0 6rem;
    overflow: hidden;
    isolation: isolate;
}
.ht-hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(900px circle at 12% 18%, rgba(67,176,241,0.32) 0%, transparent 55%),
      radial-gradient(700px circle at 88% 82%, rgba(193,19,31,0.30) 0%, transparent 55%),
      radial-gradient(500px circle at 50% 100%, rgba(252,240,213,0.10) 0%, transparent 50%);
    z-index: -1;
}
.ht-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><path d='M0 79.5h80M79.5 0v80' stroke='%23fcf0d5' stroke-opacity='0.05' stroke-width='1'/></svg>");
    z-index: -1;
    pointer-events: none;
}
.ht-hero h1 {
    font-size: clamp(3rem, 8.5vw, 7.6rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
    color: var(--cream);
    font-variation-settings: "opsz" 144;
}
.ht-hero h1 em { font-style: italic; font-weight: 300; color: var(--cream-2); }

.ht-hero .lede {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.5;
    max-width: 38ch;
    color: rgba(252,240,213,0.78);
    margin-top: 1.6rem;
}

/* Floating 3D shapes */
.float-shape {
    position: absolute;
    border-radius: 26px;
    background: linear-gradient(140deg, rgba(252,240,213,0.06) 0%, rgba(252,240,213,0.02) 100%);
    border: 1px solid rgba(252,240,213,0.18);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
    animation: float-3d 9s ease-in-out infinite;
}
@keyframes float-3d {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50%      { transform: translate3d(0, -16px, 0) rotate(2deg); }
}

/* ===================== SECTIONS ========================================== */
section { padding: var(--s-5) 0; position: relative; }
section.tight { padding: var(--s-4) 0; }
section h2 {
    font-size: clamp(2.2rem, 5.5vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: 1.6rem;
    font-variation-settings: "opsz" 96;
    max-width: 18ch;
}
section h2 em { font-style: italic; font-weight: 300; color: var(--red); }
.bg-navy section h2 em { color: var(--sky); }

.lede {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.55;
    max-width: var(--measure);
    opacity: 0.85;
}

.section-numeral {
    font-family: var(--display);
    font-size: clamp(8rem, 16vw, 14rem);
    color: rgba(0, 48, 73, 0.05);
    position: absolute;
    top: 1rem; right: -1rem;
    line-height: 0.8;
    font-weight: 500;
    pointer-events: none;
    user-select: none;
}
.bg-navy .section-numeral { color: rgba(252,240,213,0.04); }

/* ===================== STAT CARDS ======================================== */
.stat-card {
    background: linear-gradient(135deg, rgba(252,240,213,0.04) 0%, rgba(67,176,241,0.05) 100%);
    border: 1px solid rgba(252,240,213,0.14);
    border-radius: 22px;
    padding: 2rem 1.4rem;
    text-align: center;
    backdrop-filter: var(--glass-blur);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover { transform: translateY(-6px); border-color: rgba(252,240,213,0.32); }
.stat-card .n {
    font-family: var(--display);
    font-variation-settings: "opsz" 144;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--cream);
}
.stat-card .n .red { color: var(--red); }
.stat-card .n .sky { color: var(--sky); }
.stat-card .l {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 0.7rem;
}

/* ===================== PRODUCT CARDS ===================================== */
.product-card {
    position: relative;
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0,48,73,0.08);
    padding: 2.2rem;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    isolation: isolate;
    display: flex; flex-direction: column;
    min-height: 360px;
}
.product-card::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent, var(--sky)) 0%, transparent 65%);
    opacity: 0.18;
    z-index: -1;
    transition: transform 0.5s ease;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent, var(--sky));
}
.product-card:hover::before { transform: scale(1.4); }

.product-card .badge-product {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(0,48,73,0.06);
    color: var(--navy);
    margin-bottom: 1.2rem;
}
.product-card h3 {
    font-size: 2.1rem;
    line-height: 1;
    margin-bottom: 0.8rem;
    font-variation-settings: "opsz" 96;
}
.product-card h3 em { color: var(--accent, var(--red)); font-style: italic; font-weight: 300; }
.product-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(0,48,73,0.7);
    margin-bottom: 1.4rem;
    flex: 1;
}
.product-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,48,73,0.08);
    padding-top: 1.2rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0,48,73,0.55);
}
.product-card .meta strong { color: var(--accent, var(--red)); }
.product-card .arrow {
    margin-left: auto;
    font-family: var(--display);
    font-size: 1.6rem;
    color: var(--accent, var(--red));
    transition: transform 0.25s ease;
}
.product-card:hover .arrow { transform: translateX(6px); }

.product-card--schoolpilot { --accent: var(--sky); }
.product-card--medicore    { --accent: var(--red); }
.product-card--unityworks  { --accent: var(--amber); }
.product-card--lectern     { --accent: var(--emerald); }

/* ===================== COMING SOON CARDS ================================= */
.soon-card {
    position: relative;
    background: white;
    border: 1px solid rgba(0,48,73,0.08);
    border-radius: 24px;
    padding: 2rem 2.1rem;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.soon-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--accent, var(--sky));
    opacity: 0.85;
}
.soon-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--accent, var(--sky));
}
.soon-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.soon-icon {
    flex: 0 0 auto;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent, var(--sky)) 14%, white);
    color: var(--accent, var(--sky));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.soon-logo {
    flex: 0 0 auto;
    width: 52px; height: 52px;
    border-radius: 14px;
    object-fit: cover;
}
.soon-title { flex: 1; min-width: 0; }
.soon-title .badge-product {
    display: inline-flex;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(0,48,73,0.06);
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.soon-title h3 {
    font-size: 1.7rem;
    line-height: 1;
    margin: 0;
    font-variation-settings: "opsz" 96;
}
.soon-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--navy);
    background: color-mix(in srgb, var(--accent, var(--sky)) 16%, white);
    border: 1px solid color-mix(in srgb, var(--accent, var(--sky)) 40%, white);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
}
.soon-pill .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent, var(--sky));
    box-shadow: 0 0 0 0 var(--accent, var(--sky));
    animation: soon-pulse 1.8s ease-out infinite;
}
@keyframes soon-pulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, var(--sky)) 55%, transparent); }
    70%  { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.soon-summary {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(0,48,73,0.72);
    margin: 0 0 1.3rem;
}
.soon-progress { margin-bottom: 1.3rem; }
.soon-progress-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(0,48,73,0.55);
    margin-bottom: 0.45rem;
}
.soon-progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(0,48,73,0.08);
    overflow: hidden;
}
.soon-progress-track > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent, var(--sky)), color-mix(in srgb, var(--accent, var(--sky)) 55%, white));
    transition: width 1s ease;
}
.soon-features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(0,48,73,0.08);
    padding-top: 1.2rem;
}
.soon-features li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(0,48,73,0.78);
}
.soon-features .tick {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent, var(--sky)) 16%, white);
    color: var(--accent, var(--sky));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    margin-top: 1px;
}
.soon-features strong { color: var(--navy); font-weight: 600; }
.soon-features .d { color: rgba(0,48,73,0.62); }

/* ===================== FEATURE / SERVICE TILE ============================ */
.tile {
    background: white;
    border: 1px solid rgba(0,48,73,0.08);
    border-radius: 18px;
    padding: 1.6rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--red); }
.tile .num {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.8rem;
}
.tile h4 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    line-height: 1.1;
}
.tile h4 em { font-style: italic; font-weight: 300; color: var(--red); }
.tile p { font-size: 0.92rem; line-height: 1.55; color: rgba(0,48,73,0.7); margin: 0; }
.tile .icon-circle {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cream-2) 0%, var(--cream) 100%);
    color: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

/* ===================== INDUSTRIES / PILLS ================================ */
.industry-pill {
    background: white;
    border: 1px solid rgba(0,48,73,0.1);
    border-radius: 18px;
    padding: 2rem 1.4rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: default;
    height: 100%;
}
.industry-pill:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, white 0%, rgba(67,176,241,0.06) 100%);
}
.industry-pill .icon-large {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--cream);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-sm);
}
.industry-pill h5 {
    font-size: 1.2rem; margin-bottom: 0.5rem;
}
.industry-pill p { font-size: 0.85rem; color: rgba(0,48,73,0.65); margin: 0; }

/* ===================== TIMELINE ========================================== */
.timeline {
    position: relative;
    padding: 1rem 0;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 30px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--red) 0%, var(--sky) 100%);
}
.timeline-item {
    position: relative;
    padding: 1rem 0 1.6rem 80px;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: 22px; top: 1.4rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--cream);
    border: 3px solid var(--red);
    box-shadow: 0 0 0 6px rgba(193,19,31,0.18);
}
.timeline-item .year {
    font-family: var(--display);
    font-size: 1.8rem; font-weight: 500;
    color: var(--red);
    letter-spacing: -0.025em;
}
.timeline-item h4 { font-size: 1.3rem; margin: 0.2rem 0 0.4rem; }
.timeline-item p { font-size: 0.95rem; color: rgba(0,48,73,0.7); margin: 0; }

/* ===================== FORMS ============================================= */
.form-control, .form-select {
    border: 1.5px solid rgba(0,48,73,0.15);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-family: var(--sans);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(193,19,31,0.12);
}
.form-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0,48,73,0.7);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,48,73,0.06);
}

/* ===================== PULL QUOTE ======================================== */
.pullquote {
    background: var(--red);
    color: var(--cream);
    text-align: center;
    padding: var(--s-4) 0;
    position: relative;
}
.pullquote::before, .pullquote::after {
    content: "";
    display: block;
    height: 2px; width: 80px;
    background: var(--cream);
    margin: 0 auto 2rem;
}
.pullquote::after { margin: 2rem auto 0; }
.pullquote q {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.6rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    max-width: 22ch;
    margin: 0 auto;
    font-weight: 300;
    font-style: italic;
    quotes: none;
}
.pullquote .cite {
    display: block;
    margin-top: 1.4rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.85;
}

/* ===================== FOOTER ============================================ */
.ht-footer {
    background: var(--navy-deep);
    color: rgba(252,240,213,0.6);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(252,240,213,0.06);
}
.ht-footer h5 {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 1.4rem;
}
.ht-footer ul { list-style: none; padding: 0; margin: 0; }
.ht-footer ul li { padding: 0.32rem 0; }
.ht-footer ul a { color: rgba(252,240,213,0.65); font-size: 0.92rem; }
.ht-footer ul a:hover { color: var(--cream); }
.ht-footer-brand {
    display: flex; align-items: center; gap: 0.75rem;
    font-family: var(--display); font-weight: 500; font-size: 1.1rem;
    color: var(--cream); margin-bottom: 1rem;
}
.ht-footer-brand svg { width: 34px; height: 38px; }
.ht-footer-bottom {
    border-top: 1px solid rgba(252,240,213,0.08);
    padding-top: 1.5rem;
    margin-top: 3rem;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(252,240,213,0.4);
    flex-wrap: wrap; gap: 1rem;
}

/* Newsletter input */
.newsletter-row {
    display: flex; gap: 0.5rem;
    background: rgba(252,240,213,0.08);
    border: 1px solid rgba(252,240,213,0.15);
    border-radius: 999px;
    padding: 0.3rem;
}
.newsletter-row input {
    flex: 1; background: transparent; border: none;
    color: var(--cream); padding: 0.65rem 1rem;
    font-family: var(--sans); font-size: 0.92rem; outline: none;
}
.newsletter-row input::placeholder { color: rgba(252,240,213,0.5); }
.newsletter-row button {
    background: var(--red); color: var(--cream);
    border: none; border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-family: var(--mono); font-size: 0.68rem;
    letter-spacing: 0.22em; text-transform: uppercase;
    cursor: pointer; transition: background 0.2s;
}
.newsletter-row button:hover { background: var(--cream); color: var(--red); }

/* ===================== STICKY SCROLL INDICATOR =========================== */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px;
    background: transparent;
    z-index: 1500;
    pointer-events: none;
}
.scroll-progress span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--red) 0%, var(--sky) 100%);
    width: 0%;
    transition: width 0.1s linear;
}

/* ===================== AOS REVEAL TWEAKS ================================= */
[data-aos] { will-change: opacity, transform; }

/* ===================== HERO PRODUCT MOCKUP =============================== */
.mockup {
    position: relative;
    background: var(--navy-deep);
    border-radius: 22px;
    border: 1px solid rgba(252,240,213,0.16);
    padding: 1.3rem;
    box-shadow: 0 50px 90px -30px rgba(0,0,0,0.55), 0 0 0 1px rgba(67,176,241,0.08);
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.4s ease;
}
.mockup:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(0deg) scale(1.02); }
.mockup .chrome { display: flex; gap: 6px; margin-bottom: 1rem; }
.mockup .chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(252,240,213,0.18); }

/* ===================== FAQ =============================================== */
.faq-item {
    background: white;
    border: 1px solid rgba(0,48,73,0.08);
    border-radius: 16px;
    padding: 1.2rem 1.6rem;
    margin-bottom: 0.8rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.faq-item summary {
    cursor: pointer; font-family: var(--display); font-weight: 500;
    font-size: 1.15rem; padding-right: 2rem; position: relative;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute; right: 0; top: 0;
    font-family: var(--display); font-size: 1.6rem;
    color: var(--red);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 1rem 0 0; line-height: 1.6; color: rgba(0,48,73,0.7); }

/* ===================== TESTIMONIALS ====================================== */
.testimonial {
    background: white;
    border: 1px solid rgba(0,48,73,0.08);
    border-radius: 22px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.testimonial .stars { color: var(--amber); margin-bottom: 1rem; letter-spacing: 0.2em; }
.testimonial blockquote {
    font-family: var(--display);
    font-size: 1.25rem; line-height: 1.4;
    font-style: italic; font-weight: 300;
    margin: 0 0 1.4rem;
    color: var(--navy);
    quotes: none;
}
.testimonial blockquote::before { content: "“"; color: var(--red); }
.testimonial blockquote::after  { content: "”"; color: var(--red); }
.testimonial .who {
    border-top: 1px solid rgba(0,48,73,0.08);
    padding-top: 1rem;
    display: flex; align-items: center; gap: 0.8rem;
}
.testimonial .who .av {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display); font-weight: 500; font-size: 1.1rem;
}
.testimonial .who .name { font-weight: 500; font-family: var(--display); color: var(--navy); }
.testimonial .who .role {
    font-family: var(--mono); font-size: 0.68rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(0,48,73,0.55);
}

/* ===================== FAB (sticky demo button) ========================== */
.fab-demo {
    position: fixed;
    bottom: 1.6rem; right: 1.6rem;
    z-index: 950;
    background: var(--red);
    color: var(--cream);
    padding: 1rem 1.6rem;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    box-shadow: 0 18px 40px -10px rgba(193,19,31,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex; align-items: center; gap: 0.6rem;
}
.fab-demo:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 26px 60px -10px rgba(193,19,31,0.6);
    color: var(--cream);
}
.fab-demo .pulse {
    width: 10px; height: 10px;
    background: var(--cream); border-radius: 50%;
    animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}
@media (max-width: 768px) {
    .fab-demo .fab-text { display: none; }
    .fab-demo { padding: 0.95rem; }
}

/* ===================== RESPONSIVE ADJUSTMENTS ============================ */
@media (max-width: 768px) {
    .ht-hero { padding-top: 8rem; padding-bottom: 4rem; }
    .mockup { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============================================================================
   TEAM MEMBER CARD — photo, role, name, bio, social row
   ========================================================================== */
.team-member-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,48,73,0.08);
    box-shadow: 0 4px 14px -8px rgba(0,28,44,0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    --tm-accent: var(--red);
}
.team-member-card.team-accent-red     { --tm-accent: var(--red); }
.team-member-card.team-accent-sky     { --tm-accent: var(--sky); }
.team-member-card.team-accent-amber   { --tm-accent: var(--amber); }
.team-member-card.team-accent-emerald { --tm-accent: var(--emerald); }

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -25px rgba(0,28,44,0.35);
    border-color: var(--tm-accent);
}

.tm-photo-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
}
.tm-photo-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
}
.team-member-card:hover .tm-photo-wrap img { transform: scale(1.04); }

.tm-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 4.5rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: rgba(252,240,213,0.6);
    background:
        linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%),
        repeating-linear-gradient(45deg, rgba(252,240,213,0.04) 0, rgba(252,240,213,0.04) 2px, transparent 2px, transparent 14px);
    background-blend-mode: overlay;
}

.tm-photo-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,28,44,0.78) 100%);
    pointer-events: none;
}

.tm-social {
    position: absolute;
    left: 1rem; right: 1rem; bottom: 0.9rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}
.team-member-card:hover .tm-social { opacity: 1; transform: translateY(0); }
.team-member-card:focus-within .tm-social { opacity: 1; transform: translateY(0); }

.tm-social a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(252,240,213,0.94);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,0.35);
}
.tm-social a:hover {
    background: var(--tm-accent);
    color: var(--cream);
    transform: translateY(-2px) scale(1.08);
}

.tm-body {
    padding: 1.4rem 1.4rem 1.6rem;
    border-top: 3px solid var(--tm-accent);
}
.tm-role {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tm-accent);
    margin-bottom: 0.5rem;
}
.tm-name {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.012em;
    line-height: 1.1;
    margin: 0 0 0.7rem;
    color: var(--navy);
}
.tm-bio {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(0,48,73,0.72);
    margin: 0;
    /* Show first ~5 lines, fade out the rest */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 575px) {
    .tm-social { opacity: 1; transform: none; } /* always visible on touch */
}

/* =============================================================================
   STUDIO PHOTOGRAPHY — editorial gallery, hero strips, work imagery
   ========================================================================== */

/* Documentary editorial frame — used wherever we present a real photo */
.studio-photo {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    isolation: isolate;
}
.studio-photo:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.studio-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
}
.studio-photo:hover img { transform: scale(1.03); }
.studio-photo .frame-tint {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0,28,44,0.86) 100%);
    pointer-events: none;
    z-index: 2;
}
.studio-photo .caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.2rem 1.4rem;
    z-index: 3;
    color: var(--cream);
}
.studio-photo .caption .kicker {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 0.3rem;
    display: block;
}
.studio-photo .caption .kicker::before { display: none; }
.studio-photo .caption .title {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.012em;
    color: var(--cream);
}

/* Editorial corner-stamp on a photo (semester-poster style) */
.studio-photo .stamp {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--red);
    color: var(--cream);
    padding: 0.35rem 0.7rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border-radius: 999px;
    z-index: 3;
}
.studio-photo .stamp.sky { background: var(--sky); color: var(--navy); }
.studio-photo .stamp.amber { background: var(--amber); color: var(--navy); }
.studio-photo .stamp.emerald { background: var(--emerald); color: var(--cream); }

/* Aspect ratios for grid tiles */
.studio-photo.ratio-4-5 { aspect-ratio: 4 / 5; }
.studio-photo.ratio-3-4 { aspect-ratio: 3 / 4; }
.studio-photo.ratio-1-1 { aspect-ratio: 1 / 1; }
.studio-photo.ratio-16-9 { aspect-ratio: 16 / 9; }
.studio-photo.ratio-4-3 { aspect-ratio: 4 / 3; }

/* Tall feature photo (used in hero / Story section) */
.studio-photo.tall { aspect-ratio: 3 / 4; }

/* Editorial gallery grid — used on About and other documentary sections */
.studio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.2rem;
}
.studio-grid > .span-3 { grid-column: span 3; }
.studio-grid > .span-4 { grid-column: span 4; }
.studio-grid > .span-5 { grid-column: span 5; }
.studio-grid > .span-6 { grid-column: span 6; }
.studio-grid > .span-7 { grid-column: span 7; }
.studio-grid > .span-8 { grid-column: span 8; }
.studio-grid > .span-12 { grid-column: span 12; }
@media (max-width: 992px) {
    .studio-grid > [class*="span-"] { grid-column: span 6; }
}
@media (max-width: 640px) {
    .studio-grid > [class*="span-"] { grid-column: span 12; }
}

/* Full-bleed studio strip — runs full width with photos parallax-locked */
.studio-strip {
    position: relative;
    background: var(--navy-deep);
    overflow: hidden;
}
.studio-strip .row { margin: 0; }
.studio-strip [class*="col-"] {
    padding: 0;
    min-height: 360px;
    background-size: cover;
    background-position: center;
}

/* Documentary side-by-side: copy left, big photo right (or vice versa) */
.doc-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
    align-items: center;
}
@media (max-width: 900px) {
    .doc-feature { grid-template-columns: 1fr; }
}
.doc-feature .copy { padding-right: 1rem; }
.doc-feature .photo {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-lg);
}
.doc-feature .photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* =============================================================================
   ADMIN CONSOLE — sidebar shell, dashboard, tables, badges
   ========================================================================== */
.admin-shell {
    background: #f3f4f8;
    color: var(--navy);
    display: block;
    min-height: 100vh;
    padding: 0;
    font-size: 14px;
}
.admin-shell::before { display: none; } /* drop the grain overlay */

.admin-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    background: var(--navy-deep);
    color: var(--cream);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0 1rem;
    z-index: 100;
    transition: left 0.3s ease;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(252,240,213,0.08);
}
.admin-brand svg { width: 32px; height: 36px; flex-shrink: 0; }
.admin-brand .b1 {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.012em;
    color: var(--cream);
}
.admin-brand .b2 {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sky);
    margin-top: 2px;
}

.admin-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}
.admin-nav .nav-section {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(252,240,213,0.4);
    padding: 1rem 1.5rem 0.6rem;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1.5rem;
    color: rgba(252,240,213,0.75);
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
    border-left: 3px solid transparent;
}
.admin-nav a i { font-size: 1.05rem; opacity: 0.85; }
.admin-nav a:hover {
    background: rgba(252,240,213,0.04);
    color: var(--cream);
    padding-left: 1.7rem;
}
.admin-nav a.active {
    background: rgba(67,176,241,0.1);
    color: var(--cream);
    border-left-color: var(--red);
}
.admin-nav a.active i { color: var(--sky); opacity: 1; }

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(252,240,213,0.08);
}
.admin-user .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-soft) 100%);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 500;
}
.admin-user .meta { flex: 1; min-width: 0; }
.admin-user .name {
    font-size: 0.85rem;
    color: var(--cream);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-user .role {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sky);
    margin-top: 2px;
}
.logout-btn {
    background: none; border: none;
    color: rgba(252,240,213,0.6);
    width: 36px; height: 36px;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}
.logout-btn:hover { background: rgba(193,19,31,0.18); color: var(--red-soft); }

.admin-mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem; left: 1rem;
    z-index: 110;
    background: var(--navy-deep);
    color: var(--cream);
    border: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    font-size: 1.4rem;
    box-shadow: var(--shadow);
}

.admin-main {
    margin-left: 260px;
    padding: 2rem 2.5rem 3rem;
    min-height: 100vh;
}
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.admin-topbar h1 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.025em;
    margin: 0;
}
.admin-topbar .subtitle {
    font-size: 0.92rem;
    color: rgba(0,48,73,0.6);
    margin: 0.3rem 0 0;
}
.topbar-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Cards */
.kpi-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,48,73,0.06);
    padding: 1.4rem 1.5rem;
    box-shadow: 0 2px 8px -4px rgba(0,28,44,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px -10px rgba(0,28,44,0.18); }
.kpi-card .kpi-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.kpi-card .label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(0,48,73,0.55);
}
.kpi-card .icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    color: white;
}
.kpi-card .icon.red    { background: linear-gradient(135deg, var(--red) 0%, var(--red-soft) 100%); }
.kpi-card .icon.sky    { background: linear-gradient(135deg, var(--sky) 0%, #2e9bdf 100%); }
.kpi-card .icon.amber  { background: linear-gradient(135deg, var(--amber) 0%, #d99613 100%); }
.kpi-card .icon.emerald{ background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-soft) 100%); }
.kpi-card .icon.navy   { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); }
.kpi-card .value {
    font-family: var(--display);
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--navy);
}
.kpi-card .delta {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 0.8rem;
}
.kpi-card .delta.up   { color: #1a8a73; }
.kpi-card .delta.down { color: var(--red); }
.kpi-card .delta.flat { color: rgba(0,48,73,0.4); }

.panel {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,48,73,0.06);
    box-shadow: 0 2px 8px -4px rgba(0,28,44,0.08);
    padding: 1.5rem;
}
.panel h3 {
    font-size: 1.15rem;
    font-family: var(--display);
    font-weight: 500;
    margin: 0 0 1rem;
    letter-spacing: -0.012em;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
}
.admin-table thead th {
    background: rgba(0,48,73,0.04);
    text-align: left;
    padding: 0.7rem 1rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0,48,73,0.6);
    border-bottom: 1px solid rgba(0,48,73,0.08);
    font-weight: 500;
}
.admin-table thead th:first-child { border-top-left-radius: 10px; }
.admin-table thead th:last-child  { border-top-right-radius: 10px; }
.admin-table tbody tr { transition: background 0.15s; }
.admin-table tbody tr:hover { background: rgba(67,176,241,0.04); }
.admin-table tbody tr.is-unread { background: rgba(193,19,31,0.04); }
.admin-table tbody tr.is-unread td:first-child { border-left: 3px solid var(--red); }
.admin-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0,48,73,0.05);
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }

.status-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-weight: 500;
}
.status-badge.new       { background: rgba(193,19,31,0.12); color: var(--red); }
.status-badge.contacted { background: rgba(67,176,241,0.14); color: #1f7fb5; }
.status-badge.scheduled { background: rgba(247,178,30,0.18); color: #b27d11; }
.status-badge.won       { background: rgba(26,138,115,0.16); color: var(--emerald); }
.status-badge.lost      { background: rgba(0,48,73,0.1); color: rgba(0,48,73,0.6); }

.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0,48,73,0.05);
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}
.activity-list li:last-child { border-bottom: none; }
.activity-list .ico {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: rgba(67,176,241,0.1);
    color: var(--sky);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.activity-list .ico.red { background: rgba(193,19,31,0.1); color: var(--red); }
.activity-list .body {
    font-size: 0.88rem;
    color: rgba(0,48,73,0.85);
    line-height: 1.4;
}
.activity-list .body strong { color: var(--navy); }
.activity-list .when {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(0,48,73,0.45);
    margin-top: 0.2rem;
}

.btn-admin-primary {
    background: var(--navy);
    color: var(--cream);
    border: 1px solid var(--navy);
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
}
.btn-admin-primary:hover { background: var(--navy-deep); color: var(--cream); }

.filter-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.2rem;
}
.filter-row .form-control, .filter-row .form-select {
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    max-width: 260px;
}

/* Auth pages */
.auth-bg {
    min-height: 100vh;
    background: var(--navy-deep);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}
.auth-bg::before {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(900px circle at 18% 18%, rgba(67,176,241,0.30) 0%, transparent 55%),
      radial-gradient(700px circle at 82% 82%, rgba(193,19,31,0.28) 0%, transparent 55%);
    z-index: 0;
}
.auth-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%; max-width: 440px;
    box-shadow: 0 40px 80px -25px rgba(0,28,44,0.5);
    position: relative;
    z-index: 1;
}
.auth-card .brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    font-family: var(--display);
    font-weight: 500;
}
.auth-card .brand svg { width: 36px; height: 40px; }
.auth-card h1 {
    font-size: 1.8rem;
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
}
.auth-card .lead-sm {
    font-size: 0.92rem;
    color: rgba(0,48,73,0.6);
    margin-bottom: 1.6rem;
}

@media (max-width: 992px) {
    .admin-sidebar { left: -260px; }
    .admin-sidebar.is-open { left: 0; }
    .admin-main { margin-left: 0; padding: 4rem 1.2rem 2rem; }
    .admin-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* =============================================================================
   3D SCENES — hero PC assembly + "code in three dimensions" band
   ========================================================================== */

/* Hero: self-assembling PC */
.hero-3d {
    position: relative;
    height: 560px;
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(420px circle at 65% 38%, rgba(67,176,241,0.14) 0%, transparent 65%),
        radial-gradient(360px circle at 30% 80%, rgba(193,19,31,0.12) 0%, transparent 60%);
    border: 1px solid rgba(252,240,213,0.12);
    box-shadow: 0 50px 90px -40px rgba(0,0,0,0.55), inset 0 0 80px rgba(0,28,44,0.4);
}
.hero-3d.webgl-failed { display: none; }
#pc-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.hero-3d-status {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    white-space: nowrap;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(252,240,213,0.85);
    background: rgba(0,28,44,0.65);
    border: 1px solid rgba(67,176,241,0.3);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    backdrop-filter: var(--glass-blur);
}
.hero-3d-status .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--sky);
    box-shadow: 0 0 10px var(--sky);
    animation: status-pulse 1.6s ease-in-out infinite;
}
@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.7); }
}

/* Tech marquee strip */
.tech-marquee {
    background: var(--navy-deep);
    border-top: 1px solid rgba(252,240,213,0.08);
    border-bottom: 1px solid rgba(252,240,213,0.08);
    overflow: hidden;
    padding: 1.1rem 0;
    position: relative;
}
.tech-marquee::before,
.tech-marquee::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.tech-marquee::before { left: 0;  background: linear-gradient(90deg, var(--navy-deep), transparent); }
.tech-marquee::after  { right: 0; background: linear-gradient(-90deg, var(--navy-deep), transparent); }
.tech-track {
    display: inline-flex;
    align-items: center;
    gap: 2.2rem;
    white-space: nowrap;
    animation: tech-scroll 38s linear infinite;
    will-change: transform;
}
.tech-track .tech-item {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(252,240,213,0.6);
}
.tech-track .tech-dot {
    font-size: 0.5rem;
    color: var(--sky);
    opacity: 0.7;
}
@keyframes tech-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.tech-marquee:hover .tech-track { animation-play-state: paused; }

/* "Code in three dimensions" band */
.code3d-section {
    position: relative;
    background:
        radial-gradient(800px circle at 78% 30%, rgba(67,176,241,0.16) 0%, transparent 60%),
        radial-gradient(600px circle at 15% 90%, rgba(193,19,31,0.14) 0%, transparent 55%),
        var(--navy-deep);
    color: var(--cream);
    overflow: hidden;
    isolation: isolate;
    padding: var(--s-5) 0;
    min-height: 78vh;
    display: flex;
    align-items: center;
}
#code-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.code3d-overlay {
    position: relative;
    z-index: 2;
    pointer-events: none;
}
.code3d-overlay .btn { pointer-events: auto; }
.code3d-overlay h2 em { font-style: italic; font-weight: 300; color: var(--cream-2); }
.code3d-overlay::before {
    content: "";
    position: absolute;
    left: -10%; top: -20%;
    width: 65%; height: 140%;
    background: radial-gradient(closest-side, rgba(0,28,44,0.75), transparent);
    z-index: -1;
    pointer-events: none;
}
.code3d-facts {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 0.6rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(252,240,213,0.75);
}
.code3d-facts .ok {
    color: var(--emerald-soft);
    text-shadow: 0 0 8px rgba(42,164,139,0.8);
    margin-right: 0.4rem;
}

/* Product-card 3D tilt (JS-driven) */
.product-card[data-tilt-active] {
    transition: none;
    will-change: transform;
}

/* =============================================================================
   INSIDE THE STUDIO — 3D gallery
   Cards flip in from 3D space, tilt with the pointer, and cross-fade
   between photos with Ken Burns zoom + staggered caption reveals.
   ========================================================================== */
.studio-scene { perspective: 1300px; }

.studio-card3d {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
    background: var(--navy-deep);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: rotateY(-24deg) translateY(36px) scale(0.95);
    transition:
        opacity 0.9s ease var(--d, 0s),
        transform 1.05s cubic-bezier(0.22, 0.8, 0.3, 1) var(--d, 0s),
        box-shadow 0.4s ease;
    will-change: transform;
}
.studio-card3d.in-view { opacity: 1; transform: none; }
.studio-card3d:hover { box-shadow: var(--shadow-lg); }
.studio-card3d[data-tilt-active] { transition: box-shadow 0.4s ease; }

/* Light sheen sweeping across on hover */
.studio-card3d::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(252,240,213,0.16) 50%, transparent 60%);
    transform: translateX(-135%);
    transition: transform 0.9s ease;
}
.studio-card3d:hover::after { transform: translateX(135%); }

/* Cross-fading slides */
.studio-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: 1;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 1.2s ease;
    pointer-events: none;
}
.studio-slide.is-active { opacity: 1; transform: none; z-index: 2; }
.studio-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.studio-slide.is-active img { animation: studio-kenburns 7.5s ease-out forwards; }
@keyframes studio-kenburns {
    from { transform: scale(1.14) translateY(-1.5%); }
    to   { transform: scale(1); translateY(0); }
}

.studio-slide .frame-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0,28,44,0.88) 100%);
    pointer-events: none;
    z-index: 2;
}
.studio-slide .stamp {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--red);
    color: var(--cream);
    padding: 0.35rem 0.7rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border-radius: 999px;
    z-index: 3;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.7s ease 0.25s, transform 0.7s ease 0.25s;
}
.studio-slide .stamp.sky { background: var(--sky); color: var(--navy); }
.studio-slide .stamp.amber { background: var(--amber); color: var(--navy); }
.studio-slide .stamp.emerald { background: var(--emerald); color: var(--cream); }
.studio-slide.is-active .stamp { opacity: 1; transform: none; }

/* Captions fade in with a stagger, fade out with the photo */
.studio-slide .caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.2rem 1.4rem;
    z-index: 3;
    color: var(--cream);
}
.studio-slide .caption .kicker {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 0.3rem;
    display: block;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s;
}
.studio-slide .caption .kicker::before { display: none; }
.studio-slide .caption .title {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.012em;
    color: var(--cream);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}
.studio-slide.is-active .caption .kicker,
.studio-slide.is-active .caption .title {
    opacity: 1;
    transform: none;
}

/* Slide indicator dots */
.studio-dots {
    position: absolute;
    right: 1.1rem;
    bottom: 1.2rem;
    z-index: 5;
    display: flex;
    gap: 5px;
}
.studio-dots i {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: rgba(252,240,213,0.35);
    transition: width 0.4s ease, background 0.4s ease;
}
.studio-dots i.on {
    width: 18px;
    background: var(--sky);
    box-shadow: 0 0 8px rgba(67,176,241,0.7);
}

@media (prefers-reduced-motion: reduce) {
    .studio-card3d { opacity: 1; transform: none; }
    .studio-slide.is-active img { animation: none; }
}

@media (max-width: 1200px) {
    .hero-3d { height: 480px; }
}
@media (prefers-reduced-motion: reduce) {
    .tech-track { animation: none; }
    .hero-3d-status .dot { animation: none; }
}

/* =============================================================================
   ARTICLE DETAIL — 3D hero + editorial body
   ========================================================================== */
.article-hero {
    position: relative;
    background:
        radial-gradient(900px circle at 78% 30%, rgba(67,176,241,0.16) 0%, transparent 60%),
        radial-gradient(700px circle at 12% 88%, rgba(193,19,31,0.14) 0%, transparent 55%),
        var(--navy);
    color: var(--cream);
    overflow: hidden;
    isolation: isolate;
    padding: 9rem 0 4rem;
}
.article-hero::after {
    content: "";
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><path d='M0 79.5h80M79.5 0v80' stroke='%23fcf0d5' stroke-opacity='0.05' stroke-width='1'/></svg>");
}
.article-hero .container { position: relative; z-index: 2; }

#article-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.article-hero.webgl-off #article-canvas { display: none; }

.article-hero-copy { max-width: 42rem; }
.article-hero-copy .a-cat {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent, var(--sky));
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.article-hero-copy .a-cat::before { content: ""; width: 28px; height: 1px; background: var(--accent, var(--sky)); }
.article-hero-copy h1 {
    font-size: clamp(2.2rem, 5.2vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin: 1.2rem 0 0;
    font-variation-settings: "opsz" 144;
}
.article-hero-copy .a-sub {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.5;
    color: rgba(252,240,213,0.8);
    margin-top: 1.3rem;
    max-width: 36rem;
}
.article-hero-copy .a-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.1rem;
    margin-top: 1.8rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(252,240,213,0.6);
}
.article-hero-copy .a-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent, var(--sky)); }
.article-hero-badge {
    position: absolute;
    right: 1.4rem; bottom: 1.2rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(252,240,213,0.75);
    background: rgba(0,28,44,0.55);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    backdrop-filter: var(--glass-blur);
    pointer-events: none;
}
.article-hero-badge .live {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent, var(--sky));
    box-shadow: 0 0 8px var(--accent, var(--sky));
    animation: status-pulse 1.6s ease-in-out infinite;
}

/* Solution-page hero: contained 3D application scene */
.solution-hero-3d {
    position: relative;
    height: 460px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(400px circle at 68% 36%, rgba(67,176,241,0.14) 0%, transparent 66%),
        radial-gradient(340px circle at 28% 82%, rgba(193,19,31,0.12) 0%, transparent 60%);
    border: 1px solid rgba(252,240,213,0.12);
    box-shadow: 0 46px 84px -40px rgba(0,0,0,0.55), inset 0 0 70px rgba(0,28,44,0.4);
}
.solution-hero-3d.webgl-off { display: none; }
.hero-scene-canvas { width: 100%; height: 100%; display: block; }
.solution-hero-3d .scene-badge {
    position: absolute;
    left: 50%; bottom: 14px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(252,240,213,0.82);
    background: rgba(0,28,44,0.6);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    backdrop-filter: var(--glass-blur);
    pointer-events: none;
}
.solution-hero-3d .scene-badge .live {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent, var(--sky));
    box-shadow: 0 0 8px var(--accent, var(--sky));
    animation: status-pulse 1.6s ease-in-out infinite;
}
@media (max-width: 1200px) { .solution-hero-3d { height: 400px; } }
@media (prefers-reduced-motion: reduce) { .solution-hero-3d .scene-badge .live { animation: none; } }

/* Editorial body */
.article-body {
    background: var(--cream);
    padding: var(--s-4) 0;
}
.article-prose {
    max-width: 44rem;
    margin: 0 auto;
    font-size: 1.12rem;
    line-height: 1.75;
    color: rgba(0,48,73,0.86);
}
.article-prose > p:first-of-type::first-letter {
    font-family: var(--display);
    font-size: 3.6rem;
    font-weight: 500;
    float: left;
    line-height: 0.8;
    padding: 0.35rem 0.7rem 0 0;
    color: var(--accent, var(--red));
}
.article-prose h2 {
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 2.6rem 0 1rem;
    color: var(--navy);
}
.article-prose h3 {
    font-family: var(--display);
    font-size: 1.4rem;
    margin: 2rem 0 0.8rem;
    color: var(--navy);
}
.article-prose p { margin: 0 0 1.3rem; }
.article-prose strong { color: var(--navy); font-weight: 600; }
.article-prose ul { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.article-prose li { margin-bottom: 0.5rem; }
.article-prose blockquote {
    border-left: 3px solid var(--accent, var(--red));
    margin: 1.8rem 0;
    padding: 0.4rem 0 0.4rem 1.4rem;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--navy);
}
.article-cover {
    max-width: 52rem;
    margin: 0 auto 3rem;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.article-cover img { width: 100%; display: block; }

.article-share {
    max-width: 44rem;
    margin: 3rem auto 0;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(0,48,73,0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Related / more articles */
.article-more { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }

@media (max-width: 992px) {
    .article-hero { padding-top: 7rem; min-height: auto; }
    #article-canvas { position: relative; height: 340px; margin-top: 2rem; }
    .article-hero { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .article-hero-badge .live { animation: none; }
}


/* =============================================================================
   ADMIN ANALYTICS — horizontal bar lists (top pages / referrers)
   ========================================================================== */
.analytics-bars { display: flex; flex-direction: column; gap: 0.55rem; }
.ab-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 34px;
    align-items: center;
    gap: 0.7rem;
}
.ab-label {
    font-size: 0.85rem;
    color: var(--navy);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ab-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(0,48,73,0.08);
    overflow: hidden;
}
.ab-track > span {
    display: block;
    height: 100%;
    background: var(--red);
    border-radius: 999px;
}
.ab-count {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: rgba(0,48,73,0.6);
    text-align: right;
}
