/* ============================================================
   InfoTech Ninja — Main Stylesheet
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
    --clr-bg:            #08080f;
    --clr-bg-2:          #0f0f1a;
    --clr-bg-3:          #161625;
    --clr-bg-4:          #1c1c2e;

    --clr-cyan:          #00d4ff;
    --clr-cyan-dim:      #00a8cc;
    --clr-cyan-dark:     #006680;
    --clr-orange:        #ff6b35;
    --clr-orange-dim:    #e05520;
    --clr-amber:         #f59e0b;
    --clr-red:           #ef4444;

    --clr-text:          #e2e8f0;
    --clr-text-muted:    #94a3b8;
    --clr-text-dim:      #64748b;
    --clr-border:        #1e2a3a;
    --clr-border-light:  #253347;

    --clr-glow-cyan:     rgba(0, 212, 255, 0.12);
    --clr-glow-cyan-md:  rgba(0, 212, 255, 0.25);
    --clr-glow-orange:   rgba(255, 107, 53, 0.12);
    --clr-glow-orange-md: rgba(255, 107, 53, 0.25);

    --font-heading:      'Space Grotesk', system-ui, sans-serif;
    --font-body:         'Inter', system-ui, sans-serif;
    --font-mono:         'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg:  0 8px 40px rgba(0,0,0,0.6);
    --shadow-cyan: 0 0 20px rgba(0,212,255,0.2);
    --shadow-orange: 0 0 20px rgba(255,107,53,0.2);

    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;

    --container-max: 1200px;
    --section-pad:   80px;
    --header-h:      72px;
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: var(--header-h);
}

body.nav-open {
    overflow: hidden;
}

img, video, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--clr-cyan);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--clr-cyan-dim); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--clr-text);
}

/* ── Screen Reader Only ── */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--clr-cyan);
    color: var(--clr-bg) !important;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── Utility Classes ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.section { padding-block: var(--section-pad); }
.section--dark { background: var(--clr-bg-2); }

.text-cyan    { color: var(--clr-cyan); }
.text-orange  { color: var(--clr-orange); }
.text-muted   { color: var(--clr-text-muted); }
.text-gradient {
    background: linear-gradient(135deg, var(--clr-cyan) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-warm {
    background: linear-gradient(135deg, var(--clr-orange) 0%, var(--clr-amber) 50%, var(--clr-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.05);
    opacity: 0;
    transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn--sm  { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--lg  { padding: 0.9rem 2rem; font-size: 1rem; }
.btn--xl  { padding: 1.1rem 2.4rem; font-size: 1.1rem; }

.btn--cyan {
    background: var(--clr-cyan);
    color: var(--clr-bg);
    border-color: var(--clr-cyan);
}
.btn--cyan:hover {
    background: var(--clr-cyan-dim);
    border-color: var(--clr-cyan-dim);
    color: var(--clr-bg);
    box-shadow: var(--shadow-cyan);
    transform: translateY(-2px);
}

.btn--orange {
    background: var(--clr-orange);
    color: #fff;
    border-color: var(--clr-orange);
}
.btn--orange:hover {
    background: var(--clr-orange-dim);
    border-color: var(--clr-orange-dim);
    color: #fff;
    box-shadow: var(--shadow-orange);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--clr-cyan);
    border-color: var(--clr-cyan);
}
.btn--outline:hover {
    background: var(--clr-glow-cyan);
    color: var(--clr-cyan);
    box-shadow: var(--shadow-cyan);
    transform: translateY(-2px);
}

/* ── Badges / Tags ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.badge--cyan {
    background: rgba(0,212,255,0.1);
    color: var(--clr-cyan);
    border: 1px solid rgba(0,212,255,0.25);
}
.badge--amber {
    background: rgba(245,158,11,0.15);
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.28);
}
.badge--purple {
    background: rgba(124,58,237,0.18);
    color: #a78bfa;
    border: 1px solid rgba(124,58,237,0.30);
}
.badge--green {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.28);
}
.badge--orange {
    background: rgba(249,115,22,0.15);
    color: #fb923c;
    border: 1px solid rgba(249,115,22,0.28);
}
.badge--red {
    background: rgba(239,68,68,0.15);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.28);
}

.tag-pill {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    background: var(--clr-bg-3);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    font-size: 0.8rem;
    transition: all var(--transition);
}
.tag-pill:hover {
    border-color: var(--clr-cyan);
    color: var(--clr-cyan);
    background: var(--clr-glow-cyan);
}

/* ── Section Header ── */
.section-header {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.2);
    color: var(--clr-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-label--light {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ── HEADER ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
    background: rgba(8,8,15,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--clr-border), 0 4px 20px rgba(0,0,0,0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;
}

/* Logo */
.site-branding { flex-shrink: 0; }

.site-logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-icon { flex-shrink: 0; }

.site-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.site-name__info  { color: var(--clr-cyan); }
.site-name__ninja { color: var(--clr-orange); }

/* Nav */
.site-nav { flex: 1; display: flex; justify-content: center; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu li a {
    display: block;
    padding: 0.5rem 0.875rem;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: color var(--transition), background var(--transition);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 1.75rem);
    height: 2px;
    background: var(--clr-cyan);
    border-radius: var(--radius-full);
    transition: transform var(--transition);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    color: var(--clr-text);
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after,
.nav-menu li.current_page_item a::after {
    transform: translateX(-50%) scaleX(1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-text-muted);
    padding: 0.4rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
.search-toggle:hover { color: var(--clr-cyan); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 6px;
}

.hamburger__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--clr-text);
    border-radius: var(--radius-full);
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

.hamburger.is-active .hamburger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active .hamburger__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.is-active .hamburger__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Search Drawer */
.search-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--clr-bg-2);
    border-bottom: 1px solid var(--clr-border);
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
}

.search-drawer.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.search-drawer .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-text-muted);
    flex-shrink: 0;
    padding: 0.25rem;
    transition: color var(--transition);
}
.search-close:hover { color: var(--clr-cyan); }

/* Search Form */
.search-form__inner {
    display: flex;
    align-items: center;
    flex: 1;
    background: var(--clr-bg-3);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}
.search-form__inner:focus-within {
    border-color: var(--clr-cyan);
    box-shadow: 0 0 0 3px var(--clr-glow-cyan);
}

.search-field {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--clr-text);
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    font-family: var(--font-body);
}
.search-field::placeholder { color: var(--clr-text-dim); }

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-text-muted);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
.search-submit:hover { color: var(--clr-cyan); }

/* Nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 998;
    backdrop-filter: blur(4px);
}
.nav-overlay.is-visible { display: block; }

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--clr-bg);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-bg__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-bg__glow--cyan {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation: glowDrift 12s ease-in-out infinite alternate;
}

.hero-bg__glow--orange {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
    bottom: -10%;
    right: -5%;
    animation: glowDrift 14s ease-in-out infinite alternate-reverse;
}

.hero-bg__scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--clr-cyan), transparent);
    animation: scanLine 6s linear infinite;
    opacity: 0.3;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 4rem;
    min-height: calc(100vh - var(--header-h));
}

.hero-content { max-width: 560px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.2);
    color: var(--clr-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--clr-cyan);
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.4em;
}

.hero-word { display: inline-block; }
.hero-word--1 { color: var(--clr-text); }
.hero-word--2 { color: var(--clr-cyan); }
.hero-word--3 {
    background: linear-gradient(135deg, var(--clr-orange), var(--clr-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}
.trust-item svg { color: var(--clr-cyan); flex-shrink: 0; }

/* Hero Terminal */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-terminal {
    width: 100%;
    max-width: 480px;
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 40px var(--clr-glow-cyan);
    animation: float 6s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--clr-text-muted);
    transition: color var(--transition);
    text-decoration: none;
}
.scroll-indicator:hover { color: var(--clr-cyan); }

.scroll-indicator__chevron {
    animation: bounce 2s ease-in-out infinite;
}

/* ── TERMINAL UI COMPONENT (shared) ── */
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--clr-bg-3);
    border-bottom: 1px solid var(--clr-border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot--red    { background: #ff5f57; }
.dot--amber  { background: #febc2e; }
.dot--green  { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    margin-left: 0.5rem;
}

.terminal-body {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.9;
}

.t-prompt   { color: var(--clr-cyan); margin-right: 0.4em; }
.t-cmd      { color: var(--clr-text); }
.t-output   { color: var(--clr-text-muted); }
.t-success  { color: #22c55e; }
.t-warning  { color: var(--clr-amber); }
.t-error    { color: var(--clr-red); }
.t-cyan     { color: var(--clr-cyan); }
.t-comment  { color: var(--clr-text-dim); font-style: italic; }
.t-keyword  { color: #a78bfa; }
.t-var      { color: var(--clr-cyan); }
.t-key      { color: var(--clr-orange); }
.t-string   { color: #86efac; }
.t-num      { color: var(--clr-amber); }
.t-fn       { color: #93c5fd; }
.t-op       { color: var(--clr-text-muted); }
.t-indent   { padding-left: 1.5em; }

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--clr-cyan);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

/* ── SERVICES SECTION ── */
.services-section { background: var(--clr-bg-2); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--clr-bg-3);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    cursor: default;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-cyan);
    box-shadow: 0 8px 32px var(--clr-glow-cyan);
}

.service-card--orange:hover {
    border-color: var(--clr-orange);
    box-shadow: 0 8px 32px var(--clr-glow-orange);
}

.service-card__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--clr-glow-cyan) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}
.service-card--orange .service-card__glow {
    background: radial-gradient(circle at 50% 0%, var(--clr-glow-orange) 0%, transparent 60%);
}
.service-card:hover .service-card__glow { opacity: 1; }

.service-card__icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card__icon--cyan {
    background: rgba(0,212,255,0.1);
    color: var(--clr-cyan);
    border: 1px solid rgba(0,212,255,0.2);
}
.service-card__icon--orange {
    background: rgba(255,107,53,0.1);
    color: var(--clr-orange);
    border: 1px solid rgba(255,107,53,0.2);
}
.service-card:hover .service-card__icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--clr-glow-cyan-md);
}
.service-card--orange:hover .service-card__icon {
    box-shadow: 0 0 20px var(--clr-glow-orange-md);
}

.service-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--clr-text);
}

.service-card__desc {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--clr-cyan);
    font-size: 0.875rem;
    font-weight: 600;
    transition: gap var(--transition), color var(--transition);
}
.service-card--orange .service-card__link { color: var(--clr-orange); }
.service-card__link:hover { gap: 0.7rem; }

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ── STATS SECTION ── */
.stats-section {
    position: relative;
    padding-block: 4rem;
    overflow: hidden;
}

.stats-section__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, rgba(255,107,53,0.04) 100%);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 1.5rem 2rem;
}

.stat-divider {
    width: 1px;
    height: 80px;
    background: var(--clr-border);
    flex-shrink: 0;
}

.stat-item__icon {
    color: var(--clr-cyan);
    margin-inline: auto;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.stat-item__number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--clr-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.stat-suffix { font-size: 0.7em; }

.stat-item__label {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── ABOUT PREVIEW ── */
.about-preview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-preview__text .section-label,
.about-preview__text .section-title,
.about-preview__text .scroll-reveal {
    text-align: left;
}

.about-preview__lead {
    font-size: 1.1rem;
    color: var(--clr-text);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-preview__body {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.value-list { margin-bottom: 2rem; }

.value-list__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--clr-border);
}
.value-list__item:last-child { border-bottom: none; }
.value-list__item svg { color: var(--clr-cyan); flex-shrink: 0; margin-top: 3px; }

.about-preview__visual {
    position: relative;
}


.about-terminal {
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 30px var(--clr-glow-cyan);
}

.about-badge {
    position: absolute;
    background: var(--clr-bg-3);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-md);
    animation: float 5s ease-in-out infinite;
}
.about-badge--tl { top: -16px; left: -16px; animation-delay: -2s; }
.about-badge--br { bottom: -16px; right: -16px; }

.about-badge__num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}
.about-badge__lbl {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── BLOG CARDS ── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--clr-bg-3);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--clr-cyan);
    box-shadow: 0 8px 32px var(--clr-glow-cyan);
}

.blog-card__thumb {
    position: relative;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
}
.blog-card__thumb--no-img {
    background: linear-gradient(135deg, var(--clr-bg-3) 0%, var(--clr-bg-4) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem;
    position: relative;
    aspect-ratio: 16/9;
}
.blog-card__thumb--no-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 35%, var(--thumb-glow, rgba(0,212,255,0.18)) 0%, transparent 68%);
    pointer-events: none;
}
.blog-card__thumb--no-img[data-cat="cybersecurity"] {
    --thumb-glow: rgba(239,68,68,0.40);
    background: linear-gradient(135deg, #120614 0%, #1f0a2a 100%);
}
.blog-card__thumb--no-img[data-cat="cloud-devops"] {
    --thumb-glow: rgba(0,212,255,0.40);
    background: linear-gradient(135deg, #00101e 0%, #001830 100%);
}
.blog-card__thumb--no-img[data-cat="automation"] {
    --thumb-glow: rgba(139,92,246,0.42);
    background: linear-gradient(135deg, #0e0520 0%, #1a0a38 100%);
}
.blog-card__thumb--no-img[data-cat="networking"] {
    --thumb-glow: rgba(6,182,212,0.40);
    background: linear-gradient(135deg, #001820 0%, #002030 100%);
}
.blog-card__thumb--no-img[data-cat="systems-admin"] {
    --thumb-glow: rgba(16,185,129,0.40);
    background: linear-gradient(135deg, #001810 0%, #002818 100%);
}
.blog-card__thumb--no-img[data-cat="tutorials"] {
    --thumb-glow: rgba(245,158,11,0.42);
    background: linear-gradient(135deg, #1a0e00 0%, #2a1800 100%);
}

/* ── Per-article gradient art (mirrors local preview) ── */
.thumb-art {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.thumb-art-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}
.blog-card:hover .thumb-art-img { transform: scale(1.05); }
.thumb-art__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.blog-card:hover .blog-card__thumb img { transform: scale(1.05); }

.blog-card__cat-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    text-decoration: none;
}

.blog-card__body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.blog-card__title a { color: var(--clr-text); }
.blog-card__title a:hover { color: var(--clr-cyan); }

.blog-card__excerpt {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    padding-bottom: 0.75rem;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--clr-border);
    margin-top: auto;
}

.blog-card__meta {
    display: flex;
    gap: 0.75rem;
    color: var(--clr-text-dim);
    font-size: 0.8rem;
}

.blog-card__link {
    color: var(--clr-cyan);
    font-size: 0.875rem;
    font-weight: 600;
    transition: gap var(--transition);
}
.blog-card__link:hover { color: var(--clr-cyan-dim); }

.blog-preview-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-preview__cta {
    text-align: center;
    margin-top: 3rem;
}

/* ── CTA BANNER ── */
.cta-banner {
    position: relative;
    padding-block: 5rem;
    overflow: hidden;
    background: var(--clr-bg-2);
    border-top: 1px solid var(--clr-border);
}

.cta-banner__bg { position: absolute; inset: 0; }

.cta-banner__glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
}
.cta-banner__glow--left {
    background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
    left: -5%;
    top: -20%;
}
.cta-banner__glow--right {
    background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%);
    right: -5%;
    bottom: -20%;
}

.cta-banner__noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.cta-banner__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.cta-banner__subtitle {
    color: var(--clr-text-muted);
    max-width: 480px;
    font-size: 1.05rem;
    line-height: 1.65;
}

.cta-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    flex-shrink: 0;
}

.cta-banner__note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--clr-text-muted);
    font-size: 0.82rem;
}
.cta-banner__note svg { flex-shrink: 0; }

/* ── FOOTER ── */
.site-footer {
    background: var(--clr-bg-2);
    border-top: 1px solid var(--clr-border);
}

.footer-top { padding-block: 4rem; }

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

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-site-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
}

.footer-tagline {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--clr-bg-3);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    transition: all var(--transition);
}
.social-link:hover {
    background: var(--clr-glow-cyan);
    border-color: var(--clr-cyan);
    color: var(--clr-cyan);
    transform: translateY(-2px);
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    margin-bottom: 1.25rem;
}

.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-links a,
.footer-contact a {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    transition: color var(--transition);
    text-decoration: none;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--clr-cyan); }

.contact-list { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}
.contact-list svg { color: var(--clr-cyan); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
    border-top: 1px solid var(--clr-border);
    padding-block: 1.25rem;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.copyright {
    color: var(--clr-text-dim);
    font-size: 0.825rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}
.footer-legal-links a {
    color: var(--clr-text-dim);
    font-size: 0.825rem;
    transition: color var(--transition);
    text-decoration: none;
}
.footer-legal-links a:hover { color: var(--clr-cyan); }

/* ── BACK TO TOP ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--clr-bg-3);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}
.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.back-to-top:hover {
    background: var(--clr-glow-cyan);
    border-color: var(--clr-cyan);
    color: var(--clr-cyan);
}

/* ── CURSOR GLOW ── */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,255,0.6) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9000;
    transform: translate(-50%, -50%);
    transition: transform 0.05s linear, opacity var(--transition);
    opacity: 0;
}

/* ── READING PROGRESS BAR ── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-cyan), var(--clr-orange));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ── PAGE HERO ── */
.page-hero {
    position: relative;
    padding-top: 4rem;
    padding-bottom: 4rem;
    overflow: hidden;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
}

.page-hero--short {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.page-hero--archive .page-hero__title { font-size: clamp(2rem, 4vw, 3rem); }

.page-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.page-hero__subtitle {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin-inline: auto;
    line-height: 1.65;
}

/* ── PAGE CONTENT ── */
.page-content-wrap { padding-block: 4rem; }

.page-content .entry-content,
.post-typography {
    max-width: 720px;
    margin-inline: auto;
}

.entry-content h2,
.post-typography h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--clr-text);
    border-bottom: 2px solid var(--clr-border);
    padding-bottom: 0.5rem;
}

.entry-content h3,
.post-typography h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content p,
.post-typography p {
    margin-bottom: 1.25rem;
    color: var(--clr-text-muted);
}

.entry-content a,
.post-typography a { color: var(--clr-cyan); text-decoration: underline; }

.entry-content ul,
.entry-content ol,
.post-typography ul,
.post-typography ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--clr-text-muted);
}
.entry-content li,
.post-typography li { margin-bottom: 0.4rem; list-style: disc; }

.entry-content pre,
.post-typography pre {
    background: var(--clr-bg-3);
    border: 1px solid var(--clr-border);
    border-left: 3px solid var(--clr-cyan);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.entry-content code,
.post-typography code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--clr-bg-3);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--clr-cyan);
    border: 1px solid var(--clr-border);
}

.entry-content pre code,
.post-typography pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--clr-text);
}

.entry-content blockquote,
.post-typography blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--clr-bg-3);
    border-left: 4px solid var(--clr-orange);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--clr-text);
    font-style: italic;
}

/* ── Article Screenshot Figures ── */
.itn-screenshot {
    margin: 1.75rem 0;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.itn-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}
.itn-screenshot figcaption {
    padding: 0.6rem 1rem;
    background: rgba(0, 212, 255, 0.05);
    font-size: 0.82em;
    color: var(--clr-text-muted);
    font-family: var(--font-mono);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

/* ── SINGLE POST ── */
.post-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--clr-bg-2);
}

.post-hero__image {
    position: absolute;
    inset: 0;
}
.post-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--clr-bg) 0%, transparent 60%);
}

.post-hero__content {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.post-categories { margin-bottom: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.post-hero__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    max-width: 800px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}
.post-meta__author { display: flex; align-items: center; gap: 0.5rem; }
.post-meta__author a { color: var(--clr-cyan); font-weight: 600; }
.author-avatar { border-radius: 50%; width: 32px; height: 32px; object-fit: cover; }
.post-meta__divider { color: var(--clr-text-dim); }

.post-body { padding-block: 3rem; }

.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.post-content-area { min-width: 0; }

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
}
.post-tags__label { color: var(--clr-text-muted); font-size: 0.875rem; margin-right: 0.25rem; }

/* Author Box */
.author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    margin-top: 2.5rem;
}

.author-box__avatar { flex-shrink: 0; width: 80px; height: 80px; }
.author-box__img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-box__name { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.author-box__name a { color: var(--clr-text); }
.author-box__name a:hover { color: var(--clr-cyan); }
.author-box__bio { color: var(--clr-text-muted); font-size: 0.875rem; }

/* Post Nav */
.post-nav { margin-top: 2.5rem; }
.post-nav__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.post-nav__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
}
.post-nav__item:hover {
    border-color: var(--clr-cyan);
    background: var(--clr-glow-cyan);
}
.post-nav__next { text-align: right; }
.post-nav__label { font-size: 0.75rem; color: var(--clr-cyan); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.post-nav__title { font-size: 0.9rem; color: var(--clr-text); font-weight: 600; line-height: 1.4; }

/* Related Posts */
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--clr-border); }
.related-posts__heading { font-size: 1.25rem; margin-bottom: 1.5rem; }

/* ── Comments ── */
.comments-area {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--clr-border);
}
.comments-area__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--clr-text);
}

/* Comment list */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Comment card */
.comment-card {
    display: flex;
    gap: 1rem;
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: border-color var(--transition);
}
.comment-card:hover { border-color: rgba(0,212,255,0.2); }

.comment-card__avatar { flex-shrink: 0; width: 48px; height: 48px; }
.comment-avatar { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.comment-card__body { flex: 1; min-width: 0; }

.comment-card__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.comment-card__author { font-weight: 600; font-size: 0.9rem; color: var(--clr-cyan); }
.comment-card__author a { color: var(--clr-cyan); text-decoration: none; }
.comment-card__date { font-size: 0.78rem; color: var(--clr-text-muted); }
.comment-card__actions { margin-left: auto; }
.comment-card__actions .comment-reply-link {
    font-size: 0.78rem;
    color: var(--clr-text-muted);
    text-decoration: none;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--clr-border);
    border-radius: 999px;
    transition: color var(--transition), border-color var(--transition);
}
.comment-card__actions .comment-reply-link:hover { color: var(--clr-cyan); border-color: var(--clr-cyan); }

.comment-card__content { font-size: 0.9rem; color: var(--clr-text); line-height: 1.75; }
.comment-card__content p { margin: 0; }
.comment-card__content p + p { margin-top: 0.65rem; }

.comment-awaiting-moderation {
    font-size: 0.8rem;
    color: var(--clr-amber);
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* Comment form (#respond) */
#respond {
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
#reply-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--clr-text);
}
#reply-title .small { font-size: 0.85rem; font-weight: 400; margin-left: 0.75rem; }
#reply-title .small a { color: var(--clr-text-muted); text-decoration: none; }
#reply-title .small a:hover { color: var(--clr-cyan); }

/* Name + Email 2-col grid */
.itn-comment-meta-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

/* Reuse itn-form-group inside comment form */
.comment-form .itn-form-group { margin-bottom: 1.1rem; }
.comment-form .itn-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}
.comment-form .itn-form-group input,
.comment-form .itn-form-group textarea {
    width: 100%;
    background: var(--clr-bg-3);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.comment-form .itn-form-group input:focus,
.comment-form .itn-form-group textarea:focus {
    border-color: var(--clr-cyan);
    box-shadow: 0 0 0 3px var(--clr-glow-cyan);
}
.comment-form .itn-form-group textarea { min-height: 130px; resize: vertical; }

.itn-comment-submit-wrap { margin-top: 0.5rem; }
.itn-comment-submit { width: 100%; justify-content: center; }

@media (max-width: 600px) {
    .itn-comment-meta-fields { grid-template-columns: 1fr; }
    .comment-list .children { padding-left: 1rem; }
    .comment-card { flex-direction: column; gap: 0.75rem; }
    .comment-card__avatar { width: 36px; height: 36px; }
}

/* ── Certifications Grid ── */
.certs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    width: 130px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cert-card:hover {
    border-color: rgba(0,212,255,0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,212,255,0.08);
}

.cert-card__img-wrap {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}
.cert-card__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.cert-card__name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    text-align: center;
    letter-spacing: 0.02em;
}

/* ── BLOG SIDEBAR ── */
.blog-sidebar { display: flex; flex-direction: column; gap: 2rem; }

.widget {
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.widget-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--clr-border);
}

/* ── PAGINATION ── */
.pagination { margin-top: 3rem; display: flex; justify-content: center; }
.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding-inline: 0.75rem;
    border-radius: var(--radius-md);
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--clr-glow-cyan);
    border-color: var(--clr-cyan);
    color: var(--clr-cyan);
}

/* ── SERVICES PAGE DETAIL ── */
.services-page-wrap { padding-block: 4rem; display: flex; flex-direction: column; gap: 5rem; }

.service-detail {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2.5rem;
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.service-detail:hover { border-color: var(--clr-cyan); box-shadow: 0 0 40px var(--clr-glow-cyan); }
.service-detail--reverse:hover { border-color: var(--clr-orange); box-shadow: 0 0 40px var(--clr-glow-orange); }

.service-detail__icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.service-detail__icon--cyan { background: rgba(0,212,255,0.1); color: var(--clr-cyan); border: 1px solid rgba(0,212,255,0.2); }
.service-detail__icon--orange { background: rgba(255,107,53,0.1); color: var(--clr-orange); border: 1px solid rgba(255,107,53,0.2); }

.service-detail__title { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.75rem; }
.service-detail__desc { color: var(--clr-text-muted); margin-bottom: 1.5rem; line-height: 1.7; }

.feature-list { margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--clr-border);
    list-style: none;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
    content: '▸';
    color: var(--clr-cyan);
    flex-shrink: 0;
    margin-top: 1px;
}
.service-detail--reverse .feature-list li::before { color: var(--clr-orange); }

/* ── ABOUT PAGE ── */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mvv-card {
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color var(--transition), transform var(--transition);
}
.mvv-card:hover { border-color: var(--clr-cyan); transform: translateY(-4px); }

.mvv-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.2);
    color: var(--clr-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.mvv-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.mvv-card p  { color: var(--clr-text-muted); font-size: 0.9rem; line-height: 1.65; }

/* Timeline */
.timeline-section { background: var(--clr-bg-2); }

.timeline {
    position: relative;
    padding-left: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 5.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--clr-cyan), var(--clr-orange));
    border-radius: var(--radius-full);
}

.timeline-item {
    display: grid;
    grid-template-columns: 3.5rem 1rem 1fr;
    gap: 1.5rem;
    align-items: start;
}

.timeline-item__year {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--clr-cyan);
    text-align: right;
    padding-top: 2px;
}

.timeline-item__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--clr-cyan);
    border: 2px solid var(--clr-bg-2);
    box-shadow: 0 0 8px var(--clr-glow-cyan-md);
    margin-top: 4px;
    flex-shrink: 0;
}

.timeline-item__title { font-weight: 700; margin-bottom: 0.4rem; }
.timeline-item__content p { color: var(--clr-text-muted); font-size: 0.9rem; }

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.team-card {
    background: var(--clr-bg-3);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    transition: transform var(--transition), border-color var(--transition);
}
.team-card:hover { transform: translateY(-4px); border-color: var(--clr-cyan); }

.team-card__avatar { margin-bottom: 1.25rem; }

.team-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-cyan), var(--clr-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-bg);
    margin-inline: auto;
}

.team-card__name { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-card__role { color: var(--clr-cyan); font-size: 0.825rem; font-weight: 600; margin-bottom: 0.5rem; }
.team-card__certs { color: var(--clr-text-dim); font-size: 0.8rem; font-family: var(--font-mono); }

/* ── CONTACT PAGE ── */
.contact-wrap { max-width: 960px; margin-inline: auto; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.contact-info__heading { font-size: 1.4rem; font-weight: 700; margin-bottom: 2rem; }

.contact-detail {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--clr-border);
}
.contact-detail:last-of-type { border-bottom: none; }

.contact-detail__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.2);
    color: var(--clr-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail__label { font-size: 0.75rem; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 0.25rem; }
.contact-detail__value { color: var(--clr-text); font-size: 0.9rem; }
.contact-detail__value--muted { color: var(--clr-text-muted); font-size: 0.85rem; }
.contact-detail__value[href]:hover { color: var(--clr-cyan); }

.contact-social { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--clr-border); }
.contact-social__label { font-size: 0.8rem; color: var(--clr-text-muted); margin-bottom: 0.75rem; }

.contact-form-card {
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}
.contact-form-card__heading { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-form-card__note { color: var(--clr-text-muted); font-size: 0.875rem; margin-bottom: 1.75rem; }

/* Native Contact Form */
.itn-contact-form { display: flex; flex-direction: column; gap: 0; }

.itn-form-group { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.itn-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}
.itn-required { color: var(--clr-cyan); }

.itn-contact-form input[type="text"],
.itn-contact-form input[type="email"],
.itn-contact-form textarea {
    width: 100%;
    background: var(--clr-bg-3);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.itn-contact-form input::placeholder,
.itn-contact-form textarea::placeholder { color: var(--clr-text-dim, #4a5568); }
.itn-contact-form input:focus,
.itn-contact-form textarea:focus {
    border-color: var(--clr-cyan);
    box-shadow: 0 0 0 3px var(--clr-glow-cyan);
}
.itn-contact-form textarea { min-height: 140px; resize: vertical; }

.itn-form-submit {
    width: 100%;
    margin-top: 0.5rem;
    justify-content: center;
}

.itn-form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--clr-cyan);
}
.itn-form-success p { color: var(--clr-text); margin: 0; }
.itn-form-success strong { color: var(--clr-cyan); }

.itn-form-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.4);
    border-radius: var(--radius-md);
    color: #f87171;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

/* Map Placeholder */
.map-placeholder {
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    min-height: 300px;
    overflow: hidden;
    display: flex;
}
.map-placeholder iframe { width: 100%; height: 100%; border: none; min-height: 300px; }
.map-placeholder__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 1;
    color: var(--clr-text-dim);
    padding: 2rem;
    text-align: center;
}
.map-placeholder__inner svg { opacity: 0.4; }

/* ── PRIVACY POLICY ── */
.privacy-wrap { max-width: 800px; margin: 0 auto; }
.privacy-content { display: flex; flex-direction: column; gap: 0; }
.privacy-section { padding: 2rem 0; border-bottom: 1px solid var(--clr-border); }
.privacy-section:last-child { border-bottom: none; }
.privacy-section h2 { font-size: 1.25rem; color: var(--clr-cyan); margin-bottom: 1rem; }
.privacy-section h3 { font-size: 1rem; color: var(--clr-text); margin: 1.25rem 0 0.5rem; font-weight: 600; }
.privacy-section p { color: var(--clr-text-muted); line-height: 1.8; margin-bottom: 0.75rem; }
.privacy-section p:last-child { margin-bottom: 0; }
.privacy-section ul { color: var(--clr-text-muted); line-height: 1.8; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.privacy-section a { color: var(--clr-cyan); text-decoration: underline; text-underline-offset: 3px; }
.privacy-section a:hover { color: var(--clr-cyan-dim); }
.privacy-section code { font-family: var(--font-mono); font-size: 0.85em; background: var(--clr-bg-3); padding: 0.1em 0.4em; border-radius: 4px; color: var(--clr-orange); }

/* ── CATEGORY TABS ── */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.cat-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    font-size: 0.825rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}
.cat-tab:hover,
.cat-tab.active {
    background: var(--clr-glow-cyan);
    border-color: var(--clr-cyan);
    color: var(--clr-cyan);
}
.cat-tab__count {
    font-size: 0.75rem;
    background: var(--clr-bg-3);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-full);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

/* ── 404 PAGE ── */
.error-404 {
    padding-top: 4rem;
    padding-bottom: 4rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}
.error-404__inner { text-align: center; max-width: 680px; margin-inline: auto; }

.error-404__code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.error-digit {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}
.error-digit--cyan  { color: var(--clr-cyan); text-shadow: 0 0 40px var(--clr-glow-cyan-md); }
.error-digit--orange{ color: var(--clr-orange); text-shadow: 0 0 40px var(--clr-glow-orange-md); }
.error-digit--icon  { display: flex; align-items: center; }

.error-404__title { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.error-404__message { color: var(--clr-text-muted); margin-bottom: 2rem; line-height: 1.65; }

.error-404__terminal {
    margin: 2rem auto;
    max-width: 480px;
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
}

.error-404__actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.error-404__search { color: var(--clr-text-muted); }
.error-404__search p { margin-bottom: 1rem; font-size: 0.9rem; }

/* ── SERVICES DETAIL in about section ── */
.contact-detail { display: flex; }

/* ── NO CONTENT ── */
.no-content {
    text-align: center;
    padding: 4rem;
    color: var(--clr-text-muted);
}
.no-content h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.no-content p  { margin-bottom: 1.5rem; }

/* ── ARCHIVE WRAP ── */
.archive-wrap { padding-block: 3rem; }

/* ═══════════════════════════════════════════
   BLOG REDESIGN — Logo, masthead, feed, sidebar
   ═══════════════════════════════════════════ */

/* ── PNG Logo Image ── */
.site-logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.footer-author-credit {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ── Blog Masthead (homepage hero) ── */
.blog-masthead {
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--clr-border);
    /* Animated dark gradient — deep navy/teal/purple shift */
    background: linear-gradient(
        125deg,
        #040a18 0%,
        #001828 18%,
        #08001e 36%,
        #180010 54%,
        #001422 72%,
        #040a18 100%
    );
    background-size: 400% 400%;
    animation: mastheadShift 16s ease infinite;
}

.blog-masthead__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.blog-masthead__inner {
    position: relative;
    z-index: 1;
}

.blog-masthead__author {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 860px;
}

.blog-masthead__avatar .author-avatar-ring {
    width: 150px;
    height: 150px;
}

/* Author avatar ring */
.author-avatar-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--clr-cyan), var(--clr-orange));
    flex-shrink: 0;
    animation: glowPulseCyan 4s ease-in-out infinite;
}

.author-avatar-ring--sm {
    width: 72px;
    height: 72px;
    padding: 2px;
}

.author-avatar-ring--xl {
    width: 160px;
    height: 160px;
    padding: 4px;
}

.author-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--clr-bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--clr-cyan);
    letter-spacing: -0.03em;
}

.author-avatar-ring--sm .author-avatar-placeholder {
    font-size: 1.1rem;
}

.blog-masthead__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.blog-masthead__bio {
    color: var(--clr-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 1.25rem;
}

.blog-masthead__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Blog feed layout ── */
.blog-feed-wrap { padding-block: var(--section-pad); }

.blog-feed-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.blog-feed-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
}

.blog-feed-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--clr-border), transparent);
}

/* ── Blog card — featured (first post, full width) ── */
.blog-card--featured {
    display: block;
    margin-bottom: 2rem;
}

.blog-card__thumb--featured {
    aspect-ratio: 21/9;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.blog-card__title--lg {
    font-size: 1.4rem;
    line-height: 1.3;
}

.blog-card__featured-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--clr-orange);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}

.blog-card__author {
    color: var(--clr-text-muted);
    font-size: 0.825rem;
}
.blog-card__author strong {
    color: var(--clr-cyan);
    font-weight: 600;
}

/* ── Blog card — row layout (subsequent posts) ── */
.blog-card--row {
    flex-direction: row;
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 1rem;
}

.blog-card__thumb--row {
    width: 200px;
    min-width: 200px;
    aspect-ratio: unset;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    overflow: hidden;
}

.blog-card__thumb--row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card__thumb--row .thumb-art {
    height: 100%;
    aspect-ratio: unset;
    min-height: unset;
}

.blog-card--row .blog-card__body {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    flex: 1;
}

.blog-card--row .blog-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    padding-bottom: 0;
}

/* ── Sidebar styles ── */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
}

/* Author widget */
.widget-author {
    text-align: center;
    padding: 1.75rem;
}

.widget-author__avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.widget-author__name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.widget-author__role {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.widget-author__bio {
    color: var(--clr-text-muted);
    font-size: 0.83rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links--sm .social-link {
    width: 30px;
    height: 30px;
}

.social-links--sm {
    justify-content: center;
}

/* Category list */
.sidebar-cat-list {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.sidebar-cat-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--clr-border);
    list-style: none;
}
.sidebar-cat-list__item:last-child { border-bottom: none; }

.sidebar-cat-list__item a {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition);
}
.sidebar-cat-list__item a:hover { color: var(--clr-cyan); }

.sidebar-cat-list__count {
    background: var(--clr-bg-3);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    color: var(--clr-text-dim);
}

/* Recent posts */
.sidebar-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.sidebar-recent-list__item {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    list-style: none;
}
.sidebar-recent-list__item:last-child { border-bottom: none; }

.sidebar-recent-list__link {
    color: var(--clr-text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: color var(--transition);
    display: block;
}
.sidebar-recent-list__link:hover { color: var(--clr-cyan); }

.sidebar-recent-list__date {
    color: var(--clr-text-dim);
    font-size: 0.75rem;
}

/* Tag cloud in sidebar */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ── Blog layout responsive fixes ── */
@media (max-width: 1024px) {
    .blog-sidebar {
        position: static;
    }
    .blog-card--row {
        flex-direction: column;
    }
    .blog-card__thumb--row {
        width: 100%;
        min-width: unset;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .blog-card--row .blog-card__body {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
}

@media (max-width: 768px) {
    .blog-masthead__author {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .author-avatar-ring { margin-inline: auto; }
    .blog-masthead__bio { margin-inline: auto; }
    .blog-masthead__tags { justify-content: center; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { display: none; }
    .blog-card__thumb--featured { aspect-ratio: 16/9; }
}

/* ── PRINT ── */
@media print {
    .site-header, .hero-canvas, .hero-bg, .back-to-top,
    .reading-progress, .cursor-glow, .nav-overlay { display: none !important; }
    body { background: #fff; color: #000; }
    a { color: #000; }
}

/* ═════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═════════════════════════════════════════ */

/* ── ≤1024px (Tablet landscape) ── */
@media (max-width: 1024px) {
    :root { --section-pad: 60px; }

    .hero-inner { grid-template-columns: 1fr; padding-top: 2rem; min-height: auto; padding-bottom: 4rem; }
    .hero-visual { display: none; }
    .hero-content { max-width: 100%; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid     { grid-template-columns: repeat(2, 1fr); }
    .footer-grid   { grid-template-columns: 1fr 1fr; gap: 2rem; }

    .about-preview__grid { grid-template-columns: 1fr; }
    .about-preview__visual { display: none; }

    .cta-banner__inner { flex-direction: column; text-align: center; }
    .cta-banner__actions { align-items: center; width: 100%; }

    .post-layout  { grid-template-columns: 1fr; }
    .blog-layout  { grid-template-columns: 1fr; }
    .blog-sidebar { display: none; }

    .timeline::before { left: 4rem; }
    .timeline { padding-left: 2rem; }
}

/* ── ≤768px (Tablet / Mobile) ── */
@media (max-width: 768px) {
    :root { --section-pad: 48px; }

    /* Nav */
    .site-nav {
        position: fixed;
        top: var(--header-h);
        right: -100%;
        bottom: 0;
        width: 260px;
        background: var(--clr-bg-2);
        border-left: 1px solid var(--clr-border);
        z-index: 999;
        transition: right 0.35s ease;
        padding: 1.25rem 1rem;
        overflow-y: auto;
    }
    .nav-open .site-nav { right: 0; }

    .nav-menu { flex-direction: column; align-items: flex-start; gap: 0.125rem; width: 100%; }
    .nav-menu li { width: 100%; }
    .nav-menu li a { width: 100%; padding: 0.625rem 0.875rem; border-radius: var(--radius-md); font-size: 0.9375rem; }
    .nav-menu li a::after { display: none; }

    .hamburger { display: flex; }
    .header-cta { display: none; }

    .services-grid { grid-template-columns: 1fr; }
    .posts-grid    { grid-template-columns: 1fr; }
    .mvv-grid      { grid-template-columns: 1fr; }
    .team-grid     { grid-template-columns: 1fr 1fr; }
    .footer-grid   { grid-template-columns: 1fr; }
    .contact-grid  { grid-template-columns: 1fr; }

    .service-detail { grid-template-columns: 1fr; }
    .service-detail__icon { width: 60px; height: 60px; }

    .stats-grid { flex-direction: column; gap: 0; }
    .stat-divider { width: 80%; height: 1px; }

    .post-nav__inner { grid-template-columns: 1fr; }

    .error-404 { padding-top: 2rem; }
    .error-digit { font-size: 5rem; }

    .footer-bottom__inner { flex-direction: column; text-align: center; }
    .footer-legal-links { justify-content: center; }

    /* Footer: center all columns on mobile */
    .footer-brand,
    .footer-links,
    .footer-contact { text-align: center; }
    .footer-tagline { max-width: 100%; }
    .footer-logo-link { justify-content: center; }
    .social-links { justify-content: center; }
    .footer-links ul { align-items: center; }
    .contact-list { align-items: center; }
    .contact-list li { justify-content: center; }
    .footer-newsletter { display: flex; flex-direction: column; align-items: center; }
}

/* ── ≤480px (Small mobile) ── */
@media (max-width: 480px) {
    :root { --section-pad: 36px; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .btn--lg { padding: 0.85rem 1.5rem; }

    .team-grid { grid-template-columns: 1fr; }
    .back-to-top { bottom: 1rem; right: 1rem; }
}

/* ════════════════════════════════════════════════════════════
   LIGHT / DARK MODE SYSTEM
   ════════════════════════════════════════════════════════════ */

/* ── Header layout ── */
/* Non-home pages: logo left, nav absolutely centered, actions right */
.header-inner {
    position: relative;
    justify-content: space-between;
}
.site-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
/* Homepage (no logo): nav left-aligned, actions right — override absolute */
.header--no-logo .site-nav {
    position: static;
    transform: none;
    left: auto;
}
/* On mobile the nav becomes a fixed drawer — undo centering for both cases */
@media (max-width: 768px) {
    .site-nav,
    .header--no-logo .site-nav {
        position: fixed;
        right: -100%;
        left: auto;
        transform: none;
    }
    .nav-open .site-nav,
    .nav-open .header--no-logo .site-nav { right: 0; }

    /* Homepage mobile: search+theme left, hamburger right */
    .header--no-logo .header-actions { flex: 1; }
    .header--no-logo .hamburger { margin-left: auto; }
}

/* Footer logo wrap — always-dark background so screen blend works everywhere */
.footer-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

/* ── Light mode token overrides ── */
[data-theme="light"] {
    --clr-bg:            #f0f4f8;
    --clr-bg-2:          #ffffff;
    --clr-bg-3:          #e4eaf3;
    --clr-bg-4:          #d8e2ee;
    --clr-text:          #0f172a;
    --clr-text-muted:    #475569;
    --clr-text-dim:      #64748b;
    --clr-border:        #cbd5e1;
    --clr-border-light:  #b0bfce;
    --clr-glow-cyan:     rgba(0, 212, 255, 0.07);
    --clr-glow-orange:   rgba(255, 107, 53, 0.07);
    --clr-glow-cyan-md:  rgba(0, 212, 255, 0.14);
    --clr-glow-orange-md: rgba(255, 107, 53, 0.14);
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.10);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
    --shadow-cyan: 0 0 20px rgba(0,212,255,0.12);
    --shadow-orange: 0 0 20px rgba(255,107,53,0.12);
}

/* ── Logo wrapper — always dark so mix-blend-mode:screen strips black bg ── */
.site-logo-wrap {
    background: #08080f;
    border-radius: var(--radius-md);
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.site-logo-img {
    mix-blend-mode: screen;
}

/* ── Header small logo — round with pulsing cyan glow (non-home pages) ── */
.site-header .site-logo-wrap {
    border-radius: 50%;
    padding: 4px;
    overflow: hidden;
    border: 2px solid rgba(0, 212, 255, 0.65);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.20);
    animation: glowPulseCyan 4s ease-in-out infinite;
}
.site-header .site-logo-img {
    border-radius: 50%;
    object-fit: contain;
}

/* ── Footer logo — larger round with pulsing cyan glow ── */
.footer-logo-link .site-logo-wrap,
.footer-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    padding: 6px;
    overflow: hidden;
    border: 2px solid rgba(0, 212, 255, 0.55);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.20);
    animation: glowPulseCyan 5s ease-in-out infinite;
    background: #08080f;
}
.footer-logo-link:hover .site-logo-wrap,
.footer-logo-link:hover .footer-logo-wrap {
    border-color: rgba(0, 212, 255, 0.90);
}
.footer-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0;
}

/* ── Avatar logo (replaces MJ initials) ── */
.author-avatar-placeholder--logo {
    background: #08080f;
    padding: 0;
    overflow: hidden;
}
.author-avatar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    mix-blend-mode: screen;
}

/* ── Theme toggle button ── */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--clr-text-muted);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: var(--clr-cyan);
    color: var(--clr-cyan);
    background: var(--clr-glow-cyan);
}
/* show only the correct icon for current mode */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── Light mode surface & component adjustments ── */

/* Header: deep navy in light mode — matches footer, gives contrast for nav text */
[data-theme="light"] .site-header {
    background: radial-gradient(ellipse at 30% 50%, #1a2a44 0%, #0d1728 60%, #080f1e 100%);
    border-bottom-color: rgba(0,212,255,0.15);
}
[data-theme="light"] .site-header.scrolled {
    background: radial-gradient(ellipse at 30% 50%, #1a2a44 0%, #0d1728 60%, #080f1e 100%);
    box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
/* Nav text — light on the dark header background */
[data-theme="light"] .site-header .nav-menu li a {
    color: #c8daf0;
    font-weight: 500;
}
[data-theme="light"] .site-header .nav-menu li a:hover,
[data-theme="light"] .site-header .nav-menu li.current-menu-item a {
    color: var(--clr-cyan);
}
[data-theme="light"] .site-header .theme-toggle {
    color: #8aa8cc;
    border-color: rgba(255,255,255,0.15);
}
[data-theme="light"] .site-header .search-toggle { color: #8aa8cc; }
[data-theme="light"] .site-header .hamburger__bar { background: #8aa8cc; }
[data-theme="light"] .blog-masthead {
    background: radial-gradient(ellipse at 30% 40%, #2e4a78 0%, #1c3050 55%, #0f1e38 100%);
    animation: none;
    border-bottom-color: rgba(0,212,255,0.15);
}
/* Dot grid stays visible on the dark masthead */
[data-theme="light"] .blog-masthead::before {
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
}
/* Glows remain punchy on the dark background */
[data-theme="light"] .blog-masthead .hero-bg__glow--cyan  { opacity: 0.55; }
[data-theme="light"] .blog-masthead .hero-bg__glow--orange { opacity: 0.40; }
/* Masthead text — must stay bright on the dark navy background in light mode */
[data-theme="light"] .blog-masthead .blog-masthead__title { color: #ffffff; }
[data-theme="light"] .blog-masthead .blog-masthead__bio   { color: rgba(200, 218, 240, 0.88); }
[data-theme="light"] .blog-masthead .section-label {
    color: var(--clr-cyan);
    border-color: rgba(0, 212, 255, 0.40);
    background: rgba(0, 212, 255, 0.08);
}
[data-theme="light"] .blog-masthead .tag-pill {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(210, 228, 248, 0.92);
    border-color: rgba(255, 255, 255, 0.22);
}
[data-theme="light"] .blog-masthead .tag-pill:hover {
    border-color: var(--clr-cyan);
    color: var(--clr-cyan);
    background: rgba(0, 212, 255, 0.12);
}
[data-theme="light"] .page-hero {
    background: #e4eaf3;
}
[data-theme="light"] .hero-bg__glow--cyan  { opacity: 0.3; }
[data-theme="light"] .hero-bg__glow--orange { opacity: 0.25; }
[data-theme="light"] .hero-grid-overlay    { opacity: 0.08; }
[data-theme="light"] .section--dark        { background: var(--clr-bg-3); }
[data-theme="light"] .blog-card {
    background: var(--clr-bg-2);
    border-color: var(--clr-border);
}
[data-theme="light"] .blog-card:hover { border-color: var(--clr-cyan); }
[data-theme="light"] .widget,
[data-theme="light"] .widget-author {
    background: var(--clr-bg-2);
    border-color: var(--clr-border);
}
[data-theme="light"] .site-footer {
    background: radial-gradient(ellipse at 50% 0%, #1a2a44 0%, #0d1728 55%, #060e1a 100%);
    animation: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="light"] .footer-top  { border-bottom-color: rgba(0,212,255,0.12); }
[data-theme="light"] .footer-bottom { background: rgba(0,0,0,0.25); }
/* Footer text — keep light on dark footer */
[data-theme="light"] .site-footer,
[data-theme="light"] .footer-col-title,
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-contact .contact-list a,
[data-theme="light"] .footer-contact span,
[data-theme="light"] .copyright,
[data-theme="light"] .footer-tagline,
[data-theme="light"] .footer-legal-links a {
    color: #c8daf0;
}
[data-theme="light"] .footer-links a:hover,
[data-theme="light"] .footer-legal-links a:hover { color: var(--clr-cyan); }
[data-theme="light"] .nav-menu li a {
    color: #080f20;
    font-weight: 600;
}
[data-theme="light"] .nav-menu li a:hover,
[data-theme="light"] .nav-menu li.current-menu-item a {
    color: var(--clr-cyan-dark);
}
[data-theme="light"] .btn--outline {
    border-color: var(--clr-border);
    color: var(--clr-text);
}
/* Footer has dark bg in light mode — keep outline button readable */
[data-theme="light"] .site-footer .btn--outline {
    border-color: var(--clr-cyan);
    color: var(--clr-cyan);
}
[data-theme="light"] .btn--outline:hover {
    border-color: var(--clr-cyan);
    color: var(--clr-cyan);
}
[data-theme="light"] .tag-pill {
    background: var(--clr-bg-3);
    color: var(--clr-text-muted);
    border-color: var(--clr-border);
}
[data-theme="light"] .tag-pill:hover {
    border-color: var(--clr-cyan);
    color: var(--clr-cyan);
}
[data-theme="light"] .sidebar-cat-list__item a { color: var(--clr-text); }
[data-theme="light"] .sidebar-cat-list__item a:hover { color: var(--clr-cyan); }
[data-theme="light"] .sidebar-recent-list__link { color: var(--clr-text); }
[data-theme="light"] .sidebar-recent-list__link:hover { color: var(--clr-cyan); }
[data-theme="light"] .mvv-card { background: var(--clr-bg-2); border-color: var(--clr-border); }
[data-theme="light"] .about-badge { background: var(--clr-bg-2); border-color: var(--clr-border); }
[data-theme="light"] .search-field {
    background: var(--clr-bg-2);
    border-color: var(--clr-border);
    color: var(--clr-text);
}
[data-theme="light"] .back-to-top {
    background: var(--clr-bg-2);
    border-color: var(--clr-border);
    color: var(--clr-text);
}
[data-theme="light"] .cta-banner { background: var(--clr-bg-3); }
[data-theme="light"] .footer-logo-img { mix-blend-mode: screen; }

/* mobile: theme toggle visible in mobile nav */
@media (max-width: 768px) {
    .theme-toggle { order: -1; }
}

/* Light mode mobile nav drawer has white bg — override the dark-header text color */
@media (max-width: 768px) {
    [data-theme="light"] .site-header .site-nav .nav-menu li a {
        color: #0f172a;
    }
    [data-theme="light"] .site-header .site-nav .nav-menu li a:hover,
    [data-theme="light"] .site-header .site-nav .nav-menu li.current-menu-item a {
        color: var(--clr-cyan-dim);
    }
}

/* ════════════════════════════════════════════════════════════
   ANIMATED BACKGROUND CANVAS
   ════════════════════════════════════════════════════════════ */

/* Body creates a stacking context so z-index:-1 canvas sits
   behind content but in front of the body background color. */
body { position: relative; }

.site-bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Shared orb base */
.site-bg-orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

/* ── Dark mode orbs ── */
.site-bg-orb--1 {
    width: min(75vw, 900px);
    height: min(75vw, 900px);
    top: -20%;
    left: -15%;
    background: radial-gradient(circle at center, rgba(0,212,255,0.22) 0%, rgba(0,180,220,0.08) 50%, transparent 70%);
    filter: blur(80px);
    animation: orbFloat1 22s ease-in-out infinite;
}

.site-bg-orb--2 {
    width: min(70vw, 820px);
    height: min(70vw, 820px);
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle at center, rgba(255,107,53,0.18) 0%, rgba(255,80,20,0.07) 50%, transparent 70%);
    filter: blur(80px);
    animation: orbFloat2 28s ease-in-out infinite;
}

.site-bg-orb--3 {
    width: min(60vw, 700px);
    height: min(60vw, 700px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(139,92,246,0.14) 0%, rgba(100,60,200,0.06) 50%, transparent 70%);
    filter: blur(90px);
    animation: orbFloat3 35s ease-in-out infinite;
}

/* ── Light mode orbs — vivid, large, layered ── */
[data-theme="light"] .site-bg-orb--1 {
    width: min(85vw, 980px);
    height: min(85vw, 980px);
    top: -25%;
    left: -20%;
    background: radial-gradient(circle at center, rgba(0,185,230,0.55) 0%, rgba(0,210,255,0.25) 40%, transparent 70%);
    filter: blur(60px);
    animation-duration: 20s;
}

[data-theme="light"] .site-bg-orb--2 {
    width: min(80vw, 920px);
    height: min(80vw, 920px);
    bottom: -20%;
    right: -15%;
    background: radial-gradient(circle at center, rgba(255,90,30,0.50) 0%, rgba(255,140,60,0.22) 40%, transparent 70%);
    filter: blur(65px);
    animation-duration: 26s;
}

[data-theme="light"] .site-bg-orb--3 {
    width: min(75vw, 860px);
    height: min(75vw, 860px);
    background: radial-gradient(circle at center, rgba(120,80,255,0.40) 0%, rgba(160,100,255,0.18) 40%, transparent 70%);
    filter: blur(70px);
    animation-duration: 32s;
}

/* Light mode — animated wallpaper gradient (shifts through cyan→peach→lavender→teal) */
[data-theme="light"] body {
    background: linear-gradient(
        125deg,
        #7dd8ff 0%,
        #b8e8ff 18%,
        #ffc8a8 36%,
        #e8b8ff 54%,
        #a8f0d8 72%,
        #7dd8ff 100%
    );
    background-size: 400% 400%;
    animation: lightBgShift 18s ease infinite;
}

/* ── Glass card effect — orbs glow *through* cards ── */
.blog-card,
.widget,
.widget-author {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Dark mode glass */
.blog-card {
    background: rgba(15, 15, 26, 0.82);
}
.widget,
.widget-author {
    background: rgba(15, 15, 26, 0.80);
}

/* Light mode glass */
[data-theme="light"] .blog-card {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255,255,255,0.85);
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
[data-theme="light"] .widget,
[data-theme="light"] .widget-author {
    background: rgba(255, 255, 255, 0.70);
    border-color: rgba(255,255,255,0.80);
}

/* ── Section backgrounds — semi-transparent to let orbs bleed through ── */
[data-theme="light"] .section--dark {
    background: rgba(215, 230, 248, 0.70);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* light-mode footer is handled by the rule above (animated gradient) */

/* Dark mode section tweak — let orbs breathe */
.section--dark { background: rgba(22, 22, 37, 0.90); }
.site-footer {
    background: linear-gradient(
        135deg,
        #050810 0%,
        #001020 20%,
        #080018 40%,
        #100008 60%,
        #001018 80%,
        #050810 100%
    );
    background-size: 300% 300%;
    animation: mastheadShift 22s ease infinite;
}

/* ── Animated dot grid overlay on sections ── */
.section--dark::before,
.blog-masthead::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    animation: dotGridPulse 6s ease-in-out infinite;
    border-radius: inherit;
}
.section--dark { position: relative; overflow: hidden; }
.blog-masthead { position: relative; overflow: hidden; }

[data-theme="light"] .section--dark::before {
    background-image: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
}
[data-theme="light"] .blog-masthead::before {
    background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
}

/* ════════════════════════════════════════════════════════════
   FLOATING SHURIKAN SYSTEM (light mode header + footer)
   ════════════════════════════════════════════════════════════ */

.shurikan-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    /* invisible in dark mode */
    display: none;
}
[data-theme="light"] .shurikan-field { display: block; }

/* Footer needs a stacking context so shurikans sit behind content */
.site-footer { position: relative; overflow: hidden; }
.footer-top, .footer-bottom { position: relative; z-index: 1; }

/* 4-bladed throwing star via clip-path */
.shurikan {
    position: absolute;
    clip-path: polygon(
        50% 2%,  65% 35%, 98% 50%, 65% 65%,
        50% 98%, 35% 65%, 2% 50%,  35% 35%
    );
    will-change: transform;
    pointer-events: none;
    /* Spin + float applied per element — rotate is a separate CSS property */
}

/* ── Header shurikans (7 total, small — confined to 72 px height) ── */
.sh-h1 {
    width:12px; height:12px; top:18%; left:4%;
    background:rgba(0,212,255,0.70);
    animation: shuricanFloatA 4.8s ease-in-out infinite 0s,
               shuricanSpin  3.2s linear          infinite 0s;
}
.sh-h2 {
    width:22px; height:22px; top:52%; left:13%;
    background:rgba(255,107,53,0.60);
    animation: shuricanFloatB 6.5s ease-in-out infinite -2.1s,
               shuricanSpin  4.8s linear          infinite -2.1s;
}
.sh-h3 {
    width: 8px; height: 8px; top:25%; left:28%;
    background:rgba(255,255,255,0.28);
    animation: shuricanFloatC 4.2s ease-in-out infinite -0.7s,
               shuricanSpin  2.6s linear          infinite -0.7s;
}
.sh-h4 {
    width:26px; height:26px; top:45%; left:50%;
    background:rgba(0,212,255,0.40);
    animation: shuricanFloatA 7.2s ease-in-out infinite -3.4s,
               shuricanSpin  5.5s linear          infinite -3.4s;
}
.sh-h5 {
    width:14px; height:14px; top:16%; left:67%;
    background:rgba(255,107,53,0.55);
    animation: shuricanFloatB 5.5s ease-in-out infinite -1.3s,
               shuricanSpin  3.8s linear          infinite -1.3s;
}
.sh-h6 {
    width:18px; height:18px; top:58%; left:80%;
    background:rgba(0,212,255,0.55);
    animation: shuricanFloatC 6.0s ease-in-out infinite -0.4s,
               shuricanSpin  4.2s linear          infinite -0.4s;
}
.sh-h7 {
    width:10px; height:10px; top:30%; left:92%;
    background:rgba(255,255,255,0.30);
    animation: shuricanFloatA 4.6s ease-in-out infinite -2.8s,
               shuricanSpin  3.0s linear          infinite -2.8s;
}

/* ── Footer shurikans (12 total, spread across full height) ── */
.sh-f1 {
    width:20px; height:20px; top:8%;  left:3%;
    background:rgba(0,212,255,0.65);
    animation: shuricanFloatA 6.2s ease-in-out infinite 0s,
               shuricanSpin  3.8s linear          infinite 0s;
}
.sh-f2 {
    width:32px; height:32px; top:55%; left:8%;
    background:rgba(255,107,53,0.50);
    animation: shuricanFloatB 8.0s ease-in-out infinite -3.1s,
               shuricanSpin  5.2s linear          infinite -3.1s;
}
.sh-f3 {
    width:12px; height:12px; top:20%; left:20%;
    background:rgba(255,255,255,0.25);
    animation: shuricanFloatC 5.0s ease-in-out infinite -1.6s,
               shuricanSpin  3.0s linear          infinite -1.6s;
}
.sh-f4 {
    width:28px; height:28px; top:75%; left:22%;
    background:rgba(0,212,255,0.45);
    animation: shuricanFloatA 7.5s ease-in-out infinite -4.2s,
               shuricanSpin  4.6s linear          infinite -4.2s;
}
.sh-f5 {
    width:16px; height:16px; top:10%; left:38%;
    background:rgba(255,107,53,0.60);
    animation: shuricanFloatB 5.8s ease-in-out infinite -0.9s,
               shuricanSpin  3.5s linear          infinite -0.9s;
}
.sh-f6 {
    width:36px; height:36px; top:50%; left:44%;
    background:rgba(0,212,255,0.30);
    animation: shuricanFloatC 9.0s ease-in-out infinite -5.5s,
               shuricanSpin  6.0s linear          infinite -5.5s;
}
.sh-f7 {
    width:10px; height:10px; top:85%; left:52%;
    background:rgba(255,255,255,0.22);
    animation: shuricanFloatA 4.8s ease-in-out infinite -2.3s,
               shuricanSpin  2.8s linear          infinite -2.3s;
}
.sh-f8 {
    width:22px; height:22px; top:15%; left:62%;
    background:rgba(255,107,53,0.55);
    animation: shuricanFloatB 6.8s ease-in-out infinite -1.1s,
               shuricanSpin  4.0s linear          infinite -1.1s;
}
.sh-f9 {
    width:14px; height:14px; top:68%; left:70%;
    background:rgba(0,212,255,0.60);
    animation: shuricanFloatC 5.5s ease-in-out infinite -3.8s,
               shuricanSpin  3.3s linear          infinite -3.8s;
}
.sh-f10 {
    width:30px; height:30px; top:30%; left:78%;
    background:rgba(255,107,53,0.40);
    animation: shuricanFloatA 7.8s ease-in-out infinite -0.6s,
               shuricanSpin  5.0s linear          infinite -0.6s;
}
.sh-f11 {
    width:16px; height:16px; top:80%; left:86%;
    background:rgba(0,212,255,0.50);
    animation: shuricanFloatB 6.0s ease-in-out infinite -4.7s,
               shuricanSpin  3.6s linear          infinite -4.7s;
}
.sh-f12 {
    width:24px; height:24px; top:12%; left:93%;
    background:rgba(255,255,255,0.20);
    animation: shuricanFloatC 7.2s ease-in-out infinite -2.0s,
               shuricanSpin  4.4s linear          infinite -2.0s;
}

/* ── Masthead shurikans (11 total — scattered around the logo + caption area) ── */
.sh-m1 {
    width:14px; height:14px; top:8%;  left:2%;
    background:rgba(0,212,255,0.65);
    animation: shuricanFloatB 5.5s ease-in-out infinite 0s,
               shuricanSpin  3.4s linear          infinite 0s;
}
.sh-m2 {
    width:30px; height:30px; top:68%; left:6%;
    background:rgba(255,107,53,0.50);
    animation: shuricanFloatC 7.8s ease-in-out infinite -3.2s,
               shuricanSpin  5.0s linear          infinite -3.2s;
}
.sh-m3 {
    width: 9px; height: 9px; top:22%; left:14%;
    background:rgba(255,255,255,0.28);
    animation: shuricanFloatA 4.4s ease-in-out infinite -1.1s,
               shuricanSpin  2.8s linear          infinite -1.1s;
}
.sh-m4 {
    width:22px; height:22px; top:82%; left:24%;
    background:rgba(0,212,255,0.42);
    animation: shuricanFloatB 6.6s ease-in-out infinite -4.5s,
               shuricanSpin  4.2s linear          infinite -4.5s;
}
.sh-m5 {
    width:42px; height:42px; top:12%; left:38%;
    background:rgba(255,107,53,0.28);
    animation: shuricanFloatC 9.5s ease-in-out infinite -0.8s,
               shuricanSpin  6.5s linear          infinite -0.8s;
}
.sh-m6 {
    width:16px; height:16px; top:60%; left:50%;
    background:rgba(255,255,255,0.20);
    animation: shuricanFloatA 5.8s ease-in-out infinite -2.6s,
               shuricanSpin  3.6s linear          infinite -2.6s;
}
.sh-m7 {
    width:26px; height:26px; top:8%;  left:63%;
    background:rgba(0,212,255,0.55);
    animation: shuricanFloatB 7.2s ease-in-out infinite -1.7s,
               shuricanSpin  4.6s linear          infinite -1.7s;
}
.sh-m8 {
    width:18px; height:18px; top:75%; left:72%;
    background:rgba(255,107,53,0.60);
    animation: shuricanFloatC 6.0s ease-in-out infinite -3.9s,
               shuricanSpin  3.8s linear          infinite -3.9s;
}
.sh-m9 {
    width:48px; height:48px; top:35%; left:80%;
    background:rgba(0,212,255,0.22);
    animation: shuricanFloatA 10.0s ease-in-out infinite -5.1s,
               shuricanSpin  7.0s linear           infinite -5.1s;
}
.sh-m10 {
    width:20px; height:20px; top:88%; left:88%;
    background:rgba(255,255,255,0.25);
    animation: shuricanFloatB 6.4s ease-in-out infinite -0.5s,
               shuricanSpin  4.0s linear          infinite -0.5s;
}
.sh-m11 {
    width:12px; height:12px; top:15%; left:95%;
    background:rgba(255,107,53,0.50);
    animation: shuricanFloatC 5.0s ease-in-out infinite -2.3s,
               shuricanSpin  3.2s linear          infinite -2.3s;
}

/* Mobile: hide large masthead shurikans to reduce clutter */
@media (max-width: 768px) {
    .sh-m5, .sh-m9 { display: none; }
    .sh-f4, .sh-f6, .sh-f10, .sh-f12 { display: none; }
    .sh-h4, .sh-h2 { display: none; }
}

/* ── Lightbox ── */
#itn-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
#itn-lightbox.lb-open {
    opacity: 1;
    pointer-events: all;
}
.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}
.lb-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.lb-close:hover { opacity: 1; }
.lb-wrap {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 82vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    cursor: zoom-in;
}
.lb-img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    display: block;
    transform-origin: center;
    transition: transform 0.18s ease;
    user-select: none;
    -webkit-user-drag: none;
}
.lb-controls {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(8, 8, 15, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-full);
    padding: 0.35rem 1rem;
}
.lb-btn {
    background: none;
    border: none;
    color: var(--clr-cyan);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s;
    width: 1.5rem;
    text-align: center;
}
.lb-btn:hover { opacity: 1; }
.lb-zoom-label {
    color: var(--clr-text-muted);
    font-size: 0.8rem;
    min-width: 2.8rem;
    text-align: center;
}
