/* =====================================================
   UTILITY KINGS - MAIN STYLESHEET
   Energy Intelligence & Systems Integrator
   ===================================================== */

/* -----------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   ----------------------------------------------- */
:root {
    /* Core Palette - extracted from imagery */
    --color-bg-deep:       #05090f;   /* near-black navy from wireframe turbine */
    --color-bg-dark:       #0a1220;   /* deep navy from pylon night shot */
    --color-bg-mid:        #0d1a2e;   /* mid-layer panels */
    --color-bg-card:       rgba(13, 26, 46, 0.75);

    --color-cyan:          #00d4e8;   /* electric cyan from pylon glow lines */
    --color-cyan-dim:      #0099aa;
    --color-cyan-glow:     rgba(0, 212, 232, 0.15);
    --color-cyan-border:   rgba(0, 212, 232, 0.25);

    --color-amber:         #e8941a;   /* warm amber from storage compound lights */
    --color-amber-dim:     rgba(232, 148, 26, 0.15);
    --color-amber-border:  rgba(232, 148, 26, 0.35);

    --color-white:         #ffffff;
    --color-text-primary:  #e8edf5;
    --color-text-body:     #8fa3bb;
    --color-text-muted:    #4d6680;
    --color-border:        rgba(100, 140, 180, 0.12);

    /* Typography */
    --font-heading:        'Barlow Condensed', sans-serif;
    --font-body:           'Barlow', sans-serif;

    /* Spacing */
    --space-xs:    0.5rem;
    --space-sm:    1rem;
    --space-md:    2rem;
    --space-lg:    4rem;
    --space-xl:    8rem;
    --space-2xl:   12rem;

    /* Layout */
    --max-width:   1320px;
    --nav-height:  80px;

    /* Effects */
    --glass-bg:    rgba(10, 18, 32, 0.6);
    --glass-border: 1px solid rgba(0, 212, 232, 0.15);
    --blur:        blur(16px);
    --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 232, 0.08);
    --shadow-glow: 0 0 60px rgba(0, 212, 232, 0.2);
    --radius:      4px;
    --radius-md:   8px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* -----------------------------------------------
   RESET & BASE
   ----------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-body);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--color-white);
}

ul {
    list-style: none;
}

/* -----------------------------------------------
   UTILITY CLASSES
   ----------------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-pad {
    padding: var(--space-xl) 0;
}

.text-cyan   { color: var(--color-cyan); }
.text-amber  { color: var(--color-amber); }
.text-white  { color: var(--color-white); }
.text-muted  { color: var(--color-text-muted); }

.tag-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-cyan);
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--color-cyan-border);
    border-radius: 2px;
    background: var(--color-cyan-glow);
    margin-bottom: 1.5rem;
}

.tag-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-cyan);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

/* -----------------------------------------------
   TYPOGRAPHY
   ----------------------------------------------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-white);
}

h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: 1.35rem; }

p {
    font-size: 1.05rem;
    color: var(--color-text-body);
    max-width: 65ch;
    line-height: 1.75;
}

/* -----------------------------------------------
   BUTTONS
   ----------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2.25rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-cyan);
    color: var(--color-bg-deep);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    background: #00eeff;
    color: var(--color-bg-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 232, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--color-cyan);
    border: 1px solid var(--color-cyan-border);
}

.btn-outline:hover {
    background: var(--color-cyan-glow);
    color: var(--color-white);
    border-color: var(--color-cyan);
}

.btn-amber {
    background: var(--color-amber);
    color: #fff;
}

.btn-amber:hover {
    background: #f0a030;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 148, 26, 0.4);
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.btn:hover svg {
    transform: translateX(4px);
}

/* -----------------------------------------------
   NAVIGATION
   ----------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background: rgba(5, 9, 15, 0.92);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 1px 0 rgba(0, 212, 232, 0.1), 0 4px 30px rgba(0,0,0,0.4);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo__mark {
    width: 38px;
    height: 38px;
    position: relative;
}

.site-logo__mark svg {
    width: 100%;
    height: 100%;
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-logo__name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-white);
}

.site-logo__tagline {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-top: 2px;
}

/* Primary Nav */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.primary-nav ul li a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-body);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.primary-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-cyan);
    transition: width 0.3s;
}

.primary-nav ul li a:hover {
    color: var(--color-white);
}

.primary-nav ul li a:hover::after {
    width: 100%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-body);
    transition: var(--transition);
}

/* -----------------------------------------------
   HERO SECTION - VIDEO BACKGROUND
   ----------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Fallback while video loads or if browser can't play */
    background-image: url('/images/AdobeStock_1785495758.jpeg');
    background-size: cover;
    background-position: center;
}

.hero__video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Layered overlays for dark + cyan tint */
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(5, 9, 15, 0.88) 0%,
            rgba(5, 9, 15, 0.65) 50%,
            rgba(0, 20, 40, 0.75) 100%
        );
    z-index: 1;
}

/* Subtle scanline texture */
.hero__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 232, 0.018) 2px,
        rgba(0, 212, 232, 0.018) 4px
    );
    pointer-events: none;
}

/* Bottom gradient fade */
.hero__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(to top, var(--color-bg-deep), transparent);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    padding: calc(var(--nav-height) + 4rem) 0 14rem;
    max-width: 820px;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fade-up 0.9s 0.2s ease forwards;
}

.hero__eyebrow-line {
    width: 40px;
    height: 1px;
    background: var(--color-cyan);
}

.hero__eyebrow-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-cyan);
}

.hero__title {
    font-size: clamp(2.8rem, 7.5vw, 6.5rem);
    font-weight: 900;
    line-height: 0.95;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fade-up 0.9s 0.4s ease forwards;
}

.hero__title em {
    font-style: normal;
    color: var(--color-cyan);
    display: block;
}

.hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-body);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0;
    animation: fade-up 0.9s 0.6s ease forwards;
}

.hero__cta-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-up 0.9s 0.8s ease forwards;
}

/* Hero stats bar */
.hero__stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    opacity: 0;
    animation: fade-up 0.9s 1.1s ease forwards;
    border-top: 1px solid rgba(0, 212, 232, 0.15);
    background: linear-gradient(to top, rgba(5, 9, 15, 0.85), transparent);
    padding: 2rem 0;
}

.hero__stats .container {
    display: flex;
    gap: 3rem;
    padding-bottom: 0;
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
}

.hero__stat-value span {
    color: var(--color-cyan);
}

.hero__stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
    align-self: center;
}

/* -----------------------------------------------
   MARQUEE BAND
   ----------------------------------------------- */
.marquee-band {
    background: var(--color-cyan);
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 2.5rem;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-bg-deep);
}

.marquee-dot {
    width: 5px;
    height: 5px;
    background: var(--color-bg-deep);
    border-radius: 50%;
    opacity: 0.5;
}

/* -----------------------------------------------
   STRATEGIC PILLARS SECTION
   ----------------------------------------------- */
.pillars {
    position: relative;
    padding: var(--space-xl) 0;
    overflow: hidden;
}

.pillars__bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/AdobeStock_242096157.jpeg');
    background-size: cover;
    background-position: center 60%;
    background-attachment: fixed;
    z-index: 0;
}

.pillars__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--color-bg-deep) 0%, rgba(5,9,15,0.9) 40%, rgba(5,9,15,0.9) 70%, var(--color-bg-deep) 100%);
}

.pillars__content {
    position: relative;
    z-index: 2;
}

.pillars__header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.pillars__header p {
    margin: 1.25rem auto 0;
    text-align: center;
}

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pillar-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-cyan);
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: left;
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-card:hover {
    background: rgba(10, 18, 32, 0.85);
}

.pillar-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    filter: brightness(0.75) saturate(0.9);
    transition: filter 0.4s;
}

.pillar-card:hover .pillar-card__image {
    filter: brightness(0.85) saturate(1.1);
}

.pillar-card__number {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.pillar-card__icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-cyan-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-cyan);
    background: var(--color-cyan-glow);
}

.pillar-card__icon svg {
    width: 24px;
    height: 24px;
}

.pillar-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.pillar-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: none;
}

/* -----------------------------------------------
   ABOUT / TRANSLATION LAYER
   ----------------------------------------------- */
.about {
    padding: var(--space-xl) 0;
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

/* background grid lines */
.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 232, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 232, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.about__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about__text {}

.about__text h2 {
    margin-bottom: 1.5rem;
}

.about__text h2 .highlight {
    color: var(--color-cyan);
    position: relative;
    display: inline-block;
}

.about__text h2 .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-cyan);
}

.about__text p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    max-width: none;
}

.about__credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

.credential {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    border-left: 2px solid var(--color-cyan);
    background: rgba(0, 212, 232, 0.03);
}

.credential__value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
}

.credential__label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.about__image-wrap {
    position: relative;
}

.about__image-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about__image-frame::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--color-cyan) 0%, transparent 50%, var(--color-amber) 100%);
    border-radius: var(--radius-md);
    z-index: -1;
}

.about__image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.85) saturate(1.1);
}

/* Floating label on image */
.about__image-badge {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--color-cyan-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.75rem;
    z-index: 2;
}

.about__image-badge-label {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: 0.4rem;
}

.about__image-badge-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
}

/* -----------------------------------------------
   RESILIENCE FEATURE (Full-width split)
   ----------------------------------------------- */
.resilience {
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

.resilience__image-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/AdobeStock_1653295015.jpeg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.resilience__image-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(5, 9, 15, 0.97) 0%,
        rgba(5, 9, 15, 0.85) 55%,
        rgba(5, 9, 15, 0.3) 100%
    );
}

.resilience__content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.resilience__content .tag-label {
    color: var(--color-amber);
    border-color: var(--color-amber-border);
    background: var(--color-amber-dim);
}

.resilience__content .tag-label::before {
    background: var(--color-amber);
    animation: none;
}

.resilience__content h2 {
    margin-bottom: 1.5rem;
}

.resilience__content p {
    margin-bottom: 2.5rem;
    max-width: none;
}

.resilience__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.resilience__feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-left: 2px solid var(--color-amber);
    background: rgba(232, 148, 26, 0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.resilience__feature-icon {
    color: var(--color-amber);
    flex-shrink: 0;
    margin-top: 2px;
}

.resilience__feature-text {
    font-size: 0.95rem;
    color: var(--color-text-body);
    line-height: 1.6;
}

/* -----------------------------------------------
   PARTNER TRAP SECTION
   ----------------------------------------------- */
.partners {
    position: relative;
    padding: var(--space-xl) 0;
    overflow: hidden;
    background: var(--color-bg-mid);
}

.partners__bg-image {
    position: absolute;
    inset: 0;
    background-image: url('/images/AdobeStock_1785495758.jpeg');
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
    opacity: 0.12;
}

.partners__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.partners__content h2 {
    margin-bottom: 1.25rem;
}

.partners__content p {
    margin: 0 auto 2.5rem;
    text-align: center;
    font-size: 1.1rem;
}

.partners__validation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.partners__val-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.85rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-body);
}

.partners__val-item svg {
    color: var(--color-cyan);
    width: 18px;
    height: 18px;
}

/* -----------------------------------------------
   CONTACT / CTA SECTION
   ----------------------------------------------- */
.contact-cta {
    padding: var(--space-xl) 0;
    position: relative;
    background: var(--color-bg-deep);
    border-top: 1px solid var(--color-border);
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-cyan), transparent);
}

.contact-cta__inner {
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-cta__inner h2 {
    margin-bottom: 1.25rem;
}

.contact-cta__inner p {
    margin: 0 auto 2.5rem;
    text-align: center;
}

/* Contact Form */
.contact-form {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(13, 26, 46, 0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.9rem 1.1rem;
    transition: border-color 0.3s;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px var(--color-cyan-glow);
}

.form-group select option {
    background: var(--color-bg-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    justify-content: center;
}

/* -----------------------------------------------
   FOOTER
   ----------------------------------------------- */
.site-footer {
    background: #030609;
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.footer__brand {}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.75;
    margin-top: 1.25rem;
    max-width: 280px;
}

.footer__col h5 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__col ul li a {
    font-size: 0.9rem;
    color: var(--color-text-body);
    transition: var(--transition);
}

.footer__col ul li a:hover {
    color: var(--color-cyan);
    padding-left: 4px;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__legal {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer__legal a {
    color: var(--color-text-muted);
}

.footer__legal a:hover {
    color: var(--color-cyan);
}

.footer__cert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* -----------------------------------------------
   ANIMATIONS
   ----------------------------------------------- */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.6); }
}

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

@keyframes scan-line {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Scroll-triggered reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* -----------------------------------------------
   RESPONSIVE - TABLET (max 1024px)
   ----------------------------------------------- */
@media (max-width: 1024px) {
    h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
    h2 { font-size: clamp(1.8rem, 4vw, 3rem); }

    .pillars__grid {
        grid-template-columns: 1fr;
    }

    .about__split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__image-badge {
        left: 1rem;
        bottom: 1rem;
    }

    .about__image {
        height: 420px;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero__content {
        padding-bottom: 12rem;
    }
}

/* -----------------------------------------------
   RESPONSIVE - MOBILE (max 768px)
   ----------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --nav-height: 70px;
    }

    /* --- Typography --- */
    h1 { font-size: clamp(2rem, 10vw, 3rem); line-height: 1; }
    h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
    h3 { font-size: 1.5rem; }
    p  { font-size: 1rem; }

    /* --- Navigation --- */
    .primary-nav ul {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(5, 9, 15, 0.98);
        backdrop-filter: var(--blur);
        -webkit-backdrop-filter: var(--blur);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        z-index: 999;
    }

    .primary-nav ul.is-open {
        display: flex;
    }

    .primary-nav ul li {
        border-bottom: 1px solid var(--color-border);
    }

    .primary-nav ul li:last-child {
        border-bottom: none;
    }

    .primary-nav ul li a {
        display: block;
        font-size: 1.1rem;
        letter-spacing: 0.12em;
        padding: 1rem 0;
        color: var(--color-text-primary);
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .primary-nav .btn {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* --- Hero --- */
    .hero {
        min-height: 100svh;
    }

    .hero__content {
        padding: calc(var(--nav-height) + 2rem) 0 11rem;
        max-width: 100%;
    }

    .hero__eyebrow {
        margin-bottom: 1.25rem;
    }

    .hero__title {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
        margin-bottom: 1rem;
    }

    .hero__sub {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero__cta-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero__cta-group .btn {
        width: 100%;
        justify-content: center;
        min-height: 52px;
    }

    .hero__stats .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .hero__stat {
        padding: 1rem;
        border-right: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
    }

    .hero__stat:nth-child(even),
    .hero__stat:nth-child(4) {
        border-right: none;
    }

    .hero__stat:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .hero__stat-divider {
        display: none;
    }

    .hero__stat-value {
        font-size: 2rem;
    }

    /* --- Tag labels --- */
    .tag-label {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }

    /* --- Marquee --- */
    .marquee-item {
        font-size: 0.72rem;
        padding: 0 1.5rem;
    }

    /* --- Pillars --- */
    .pillars__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pillar-card {
        padding: 2rem 1.5rem;
        border-bottom: 1px solid var(--color-border);
    }

    .pillar-card:last-child {
        border-bottom: none;
    }

    .pillar-card__image {
        height: 180px;
    }

    /* --- About --- */
    .about__split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about__image {
        height: 280px;
    }

    .about__image-badge {
        left: 1rem;
        bottom: 1rem;
        right: 1rem;
        padding: 1rem;
    }

    .about__credentials {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .credential {
        padding: 1rem;
    }

    .credential__value {
        font-size: 1.6rem;
    }

    /* --- Resilience --- */
    .resilience__image-bg::after {
        background: linear-gradient(180deg,
            rgba(5, 9, 15, 0.96) 0%,
            rgba(5, 9, 15, 0.92) 100%
        );
    }

    .resilience__content {
        max-width: 100%;
    }

    /* --- Partners --- */
    .partners__validation {
        flex-direction: column;
        align-items: stretch;
    }

    .partners__val-item {
        justify-content: flex-start;
        min-height: 44px;
    }

    /* --- Contact form --- */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        min-height: 52px;
        padding: 0.85rem 1rem;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .form-submit {
        min-height: 56px;
        font-size: 1rem;
    }

    /* --- Footer --- */
    .footer__top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .site-footer {
        padding: 3rem 0 2rem;
    }
}

/* -----------------------------------------------
   RESPONSIVE - SMALL MOBILE (max 420px)
   ----------------------------------------------- */
@media (max-width: 420px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero__title {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }

    .about__credentials {
        grid-template-columns: 1fr 1fr;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.8rem;
    }

    .hero__stats .container {
        grid-template-columns: 1fr 1fr;
    }
}
/* -----------------------------------------------
   FORM FEEDBACK STATES
   ----------------------------------------------- */
.form-message {
    display: none;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-message--success {
    background: rgba(0, 168, 98, 0.12);
    border: 1px solid rgba(0, 168, 98, 0.35);
    color: #00c870;
}

.form-message--error {
    background: rgba(220, 60, 60, 0.1);
    border: 1px solid rgba(220, 60, 60, 0.3);
    color: #ff6b6b;
}

.field-error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15) !important;
}


/* =====================================================
   BLOG & POST TEMPLATES
   ===================================================== */

/* -----------------------------------------------
   PAGE HERO (used by page.php, archive.php)
   ----------------------------------------------- */
.page-hero {
    position: relative;
    padding: calc(var(--nav-height) + 5rem) 0 4rem;
    overflow: hidden;
    background: var(--color-bg-dark);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/AdobeStock_1785495758.jpeg');
    background-size: cover;
    background-position: center 40%;
    z-index: 0;
    opacity: 0.08;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, rgba(10,18,32,0.7) 50%, var(--color-bg-dark) 100%);
    z-index: 1;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.page-hero__breadcrumb a {
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.page-hero__breadcrumb a:hover {
    color: var(--color-cyan);
}

.page-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.page-hero__sub {
    font-size: 1.1rem;
    color: var(--color-text-body);
    max-width: 560px;
    line-height: 1.75;
    margin-top: 1rem;
}

/* -----------------------------------------------
   ARCHIVE / BLOG LISTING
   ----------------------------------------------- */
.blog-archive {
    background: var(--color-bg-deep);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Featured first post spans full width */
.post-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.post-card--featured .post-card__image-wrap {
    height: 100%;
    min-height: 320px;
}

.post-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
}

.post-card:hover {
    background: rgba(10, 18, 32, 0.9);
}

.post-card__image-wrap {
    display: block;
    overflow: hidden;
    position: relative;
}

.post-card__image-wrap--placeholder {
    cursor: default;
}

.post-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.post-card--featured .post-card__image {
    height: 100%;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.post-card:hover .post-card__image img {
    transform: scale(1.04);
}

.post-card__image--placeholder {
    position: relative;
    background: var(--color-bg-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
}

.post-card__image--placeholder svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.post-card__body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-card__cat {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-cyan);
    background: var(--color-cyan-glow);
    border: 1px solid var(--color-cyan-border);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    text-decoration: none;
    transition: var(--transition);
}

.post-card__cat:hover {
    background: rgba(0, 212, 232, 0.25);
    color: var(--color-white);
}

.post-card__date,
.post-card__read-time {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.post-card__title {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}

.post-card--featured .post-card__title {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.post-card__title a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s;
}

.post-card__title a:hover {
    color: var(--color-cyan);
}

.post-card__excerpt {
    font-size: 0.93rem;
    color: var(--color-text-body);
    line-height: 1.75;
    max-width: none;
    flex: 1;
    margin-bottom: 1.25rem;
}

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-top: auto;
    transition: gap 0.2s;
}

.post-card__link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.post-card__link:hover {
    color: var(--color-white);
}

.post-card__link:hover svg {
    transform: translateX(4px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-body);
    background: var(--glass-bg);
    text-decoration: none;
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .current {
    background: var(--color-cyan);
    color: var(--color-bg-deep);
    border-color: var(--color-cyan);
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 1rem;
}

/* No posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts h2 {
    margin: 1rem 0;
}

.no-posts p {
    margin: 0 auto 2rem;
    text-align: center;
}

/* -----------------------------------------------
   SINGLE POST HERO
   ----------------------------------------------- */
.post-hero {
    position: relative;
    padding: calc(var(--nav-height) + 4rem) 0 5rem;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
}

.post-hero__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.post-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.post-hero__image--fallback {
    background: var(--color-bg-dark);
}

.post-hero__image-fallback-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/AdobeStock_1785495758.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 9, 15, 0.5) 0%,
        rgba(5, 9, 15, 0.7) 50%,
        rgba(5, 9, 15, 0.95) 100%
    );
    z-index: 1;
}

.post-hero__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--color-bg-deep), transparent);
    z-index: 2;
}

.post-hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.post-hero__content {
    max-width: 820px;
}

.post-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.post-hero__breadcrumb a {
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.post-hero__breadcrumb a:hover { color: var(--color-cyan); }

.post-hero__labels {
    margin-bottom: 1rem;
}

.post-hero__title {
    font-size: clamp(1.9rem, 5vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.post-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.post-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--color-text-body);
}

.post-hero__meta-sep {
    color: var(--color-text-muted);
    font-size: 0.7rem;
}

/* -----------------------------------------------
   SINGLE POST BODY LAYOUT
   ----------------------------------------------- */
.post-body {
    background: var(--color-bg-deep);
    padding: 4rem 0 6rem;
}

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

/* -----------------------------------------------
   PROSE - Article body content
   ----------------------------------------------- */
.prose {
    color: var(--color-text-body);
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: none;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5 {
    color: var(--color-white);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.prose h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.prose h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
.prose h4 { font-size: 1.2rem; }

.prose p {
    max-width: none;
    margin-bottom: 1.5rem;
    color: var(--color-text-body);
    font-size: 1.05rem;
    line-height: 1.85;
}

.prose a {
    color: var(--color-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--color-white);
}

.prose strong {
    color: var(--color-white);
    font-weight: 600;
}

.prose em {
    color: var(--color-text-primary);
}

.prose ul,
.prose ol {
    margin: 0 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.25rem; }
.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    background: var(--color-cyan);
    border-radius: 50%;
}

.prose ol { list-style: decimal; }
.prose ol li { padding-left: 0.25rem; }

.prose blockquote {
    border-left: 3px solid var(--color-cyan);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: rgba(0, 212, 232, 0.04);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.prose blockquote p {
    font-size: 1.15rem;
    color: var(--color-text-primary);
    font-style: italic;
    margin-bottom: 0;
}

.prose img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    display: block;
}

.prose figure {
    margin: 2rem 0;
}

.prose figcaption {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.prose hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 3rem 0;
}

.prose pre,
.prose code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: rgba(0, 212, 232, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.prose code {
    padding: 0.15em 0.4em;
    color: var(--color-cyan);
}

.prose pre {
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose pre code {
    background: none;
    border: none;
    padding: 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.prose th {
    background: rgba(0, 212, 232, 0.08);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-cyan-border);
}

.prose td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-body);
}

.prose tr:last-child td {
    border-bottom: none;
}

/* Post tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 3rem;
}

.post-tags__label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.post-tag {
    font-size: 0.78rem;
    color: var(--color-text-body);
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.post-tag:hover {
    color: var(--color-cyan);
    border-color: var(--color-cyan-border);
    background: var(--color-cyan-glow);
}

/* Post nav (prev/next) */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
}

.post-nav__prev,
.post-nav__next {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.post-nav__next {
    text-align: right;
    align-items: flex-end;
}

.post-nav__label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.post-nav__next .post-nav__label {
    justify-content: flex-end;
}

.post-nav__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.2s;
}

.post-nav__title:hover {
    color: var(--color-cyan);
}

/* -----------------------------------------------
   SIDEBAR
   ----------------------------------------------- */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.sidebar-widget {
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.sidebar-widget__title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    gap: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.related-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post:hover .related-post__title {
    color: var(--color-cyan);
}

.related-post__thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.related-post__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-post__text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.related-post__title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1.2;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post__date {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

/* Sidebar CTA widget */
.sidebar-cta {
    border-color: var(--color-cyan-border);
    background: linear-gradient(135deg, rgba(0, 212, 232, 0.05) 0%, rgba(13, 26, 46, 0.8) 100%);
}

.sidebar-cta__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.sidebar-cta__text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--color-text-body);
    max-width: none;
    margin: 0;
}

/* -----------------------------------------------
   PAGE CONTENT (page.php)
   ----------------------------------------------- */
.page-content {
    background: var(--color-bg-deep);
}

.page-content__inner {
    max-width: 820px;
}

.page-content__featured-image {
    margin-bottom: 3rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.page-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

/* -----------------------------------------------
   HOMEPAGE INSIGHTS SECTION
   ----------------------------------------------- */
.insights {
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

.insights::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 232, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 232, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.insights__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.insights__header-text h2 {
    margin-bottom: 0.5rem;
}

.insights__header-text p {
    max-width: 480px;
    margin: 0;
}

.insights__all-link {
    flex-shrink: 0;
    align-self: flex-end;
}

.insights__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.insight-card {
    background: rgba(10, 18, 32, 0.7);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
}

.insight-card:hover {
    background: rgba(10, 18, 32, 0.9);
}

.insight-card__image-wrap {
    display: block;
    overflow: hidden;
}

.insight-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.insight-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.insight-card:hover .insight-card__image img {
    transform: scale(1.05);
}

.insight-card__placeholder {
    position: absolute;
    inset: 0;
    background: var(--color-bg-mid);
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-card__placeholder svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.insight-card__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insight-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.insight-card__cat {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-cyan);
    background: var(--color-cyan-glow);
    border: 1px solid var(--color-cyan-border);
    padding: 0.18rem 0.55rem;
    border-radius: 2px;
    text-decoration: none;
    transition: var(--transition);
}

.insight-card__cat:hover {
    background: rgba(0, 212, 232, 0.2);
}

.insight-card__date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.insight-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.insight-card__title a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s;
}

.insight-card__title a:hover {
    color: var(--color-cyan);
}

.insight-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-body);
    line-height: 1.75;
    max-width: none;
    flex: 1;
    margin-bottom: 1.25rem;
}

.insight-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-top: auto;
    text-decoration: none;
    transition: var(--transition);
}

.insight-card__link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.insight-card__link:hover {
    color: var(--color-white);
}

.insight-card__link:hover svg {
    transform: translateX(4px);
}

/* -----------------------------------------------
   BLOG RESPONSIVE
   ----------------------------------------------- */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-card--featured {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }

    .post-card--featured .post-card__image {
        height: 280px;
    }

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

    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .sidebar-cta {
        grid-column: 1 / -1;
    }

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

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

@media (max-width: 768px) {
    /* Archive */
    .posts-grid {
        grid-template-columns: 1fr;
    }

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

    .post-card--featured .post-card__image {
        height: 220px;
    }

    .post-card__body {
        padding: 1.5rem;
    }

    /* Single post */
    .post-hero {
        min-height: 50vh;
        padding: calc(var(--nav-height) + 2rem) 0 3rem;
    }

    .post-hero__title {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .post-hero__meta {
        gap: 0.5rem;
    }

    .post-hero__meta-sep {
        display: none;
    }

    .post-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .post-sidebar {
        display: flex;
        flex-direction: column;
    }

    .post-nav {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-nav__next {
        text-align: left;
        align-items: flex-start;
    }

    .post-nav__next .post-nav__label {
        justify-content: flex-start;
    }

    /* Homepage insights */
    .insights__grid {
        grid-template-columns: 1fr;
    }

    .insights__header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .insights__all-link {
        width: 100%;
        justify-content: center;
    }

    /* Page hero */
    .page-hero {
        padding: calc(var(--nav-height) + 3rem) 0 2.5rem;
    }

    .page-hero__title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}
