/*
Theme Name: NetDynamic v2
Theme URI: https://netdynamic.net
Author: NetDynamic
Author URI: https://netdynamic.net
Description: NetDynamic engineering-console theme. Dark, precise, developer-grade. v2 redesign of the original NetDynamic theme.
Version: 2.6.3-beta
Requires PHP: 7.4
License: Proprietary
Text Domain: netdynamic2
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --primary-bg: #060609;
    --secondary-bg: #0b0b13;
    --card-bg: #11111c;
    --inset-bg: #0d0d16;

    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);

    --accent-purple: #7c3aed;
    --accent-purple-soft: #a78bfa;
    --accent-blue: #3b82f6;
    --accent-blue-soft: #60a5fa;
    --accent-pink: #ec4899;
    --signal-green: #34d399;

    --text-primary: #f4f4f8;
    --text-secondary: #9b9bb0;
    --text-dim: #5e5e74;

    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    --gradient-card: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);

    --font-display: 'Sora', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --radius: 10px;
    --radius-lg: 14px;
    --header-h: 72px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    /* clip (not hidden) so position:sticky keeps working */
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--primary-bg);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

p { margin: 0 0 16px; }
a { color: var(--accent-blue-soft); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--text-primary); }
img { max-width: 100%; height: auto; }
::selection { background: rgba(124, 58, 237, 0.45); color: #fff; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Layout grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Mono micro-label (eyebrow) */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-purple-soft);
    margin-bottom: 18px;
}
.eyebrow::before { content: ''; }

/* Section scaffolding */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--secondary-bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 14px;
}
.section-sub { font-size: 17px; color: var(--text-secondary); margin: 0; }

/* Typography hygiene: no single-word orphan lines on display text,
   no orphans in card copy */
h1, h2, h3,
.hero-subtitle, .section-sub, .subhero-sub, .networks-sub {
    text-wrap: balance;
}
.service-description, .feature-description, .work-desc, .entry-summary {
    text-wrap: pretty;
}

.gradient-text {
    background: linear-gradient(120deg, var(--accent-purple-soft) 0%, var(--accent-blue-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.35);
}
.btn-ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text-primary);
}
.btn-ghost:hover {
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.08);
    color: var(--text-primary);
}
.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(6, 6, 9, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
    background: rgba(6, 6, 9, 0.92);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.header-content {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo-img { height: 36px; width: auto; display: block; }
.site-logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.site-logo-text em {
    font-style: normal;
    color: var(--accent-purple-soft);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 34px;
}
.main-nav a {
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}
.main-nav a .nav-index {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    margin-right: 6px;
    transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--text-primary); }
.main-nav a:hover .nav-index { color: var(--accent-purple-soft); }
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1px;
    background: var(--gradient-primary);
    transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a.account-link {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 9px 18px;
    color: var(--text-primary);
}
.main-nav a.account-link:hover {
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.1);
}
.main-nav a.account-link::after { display: none; }

.mobile-menu-toggle, .mobile-menu-close { display: none; }

/* Mobile nav drawer */
@media (max-width: 860px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: 1px solid var(--line-strong);
        border-radius: 8px;
        padding: 11px 12px;
        cursor: pointer;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 20px; height: 2px;
        background: var(--text-primary);
        border-radius: 2px;
    }
    .main-nav {
        position: fixed;
        top: 0; right: 0;
        width: 280px; height: 100vh;
        background: var(--secondary-bg);
        border-left: 1px solid var(--line);
        padding: 90px 30px 30px;
        /* transform + visibility (not right:-300px) so the closed drawer
           can't widen the mobile layout viewport */
        transform: translateX(102%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
        z-index: 1100;
    }
    .main-nav.active {
        transform: none;
        visibility: visible;
        transition: transform 0.3s ease, visibility 0s;
    }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 24px; }
    .main-nav a { font-size: 17px; }
    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 22px; right: 22px;
        background: none;
        border: 1px solid var(--line-strong);
        border-radius: 8px;
        color: var(--text-primary);
        font-size: 16px;
        padding: 8px 12px;
        cursor: pointer;
    }
    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        /* below .site-header (1000) so the drawer inside it stays crisp above the blur */
        z-index: 900;
    }
    .mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }
}

/* ============================================================
   HERO (cinematic full-bleed)
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--primary-bg);
}
.hero-cinema {
    min-height: 100vh;
    padding: calc(var(--header-h) + 60px) 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}
/* dark veil for legibility + cinematic vignette */
.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 110% 90% at 50% 115%, rgba(6, 6, 9, 0.78) 0%, transparent 50%),
        linear-gradient(180deg, rgba(6, 6, 9, 0.5) 0%, rgba(6, 6, 9, 0.16) 45%, rgba(6, 6, 9, 0.72) 100%);
}
/* fine grid over the imagery for techie structure */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 56px 56px;
    /* diagonal fade: invisible at bottom-left, full strength top-right */
    -webkit-mask-image: linear-gradient(to top right, transparent 18%, rgba(0, 0, 0, 0.55) 50%, #000 82%);
    mask-image: linear-gradient(to top right, transparent 18%, rgba(0, 0, 0, 0.55) 50%, #000 82%);
    pointer-events: none;
}
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}
.hero-center {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}
/* soft scrim behind the title block only — keeps image vibrant at edges */
.hero-center::before {
    content: '';
    position: absolute;
    inset: -70px -120px;
    z-index: -1;
    background: radial-gradient(ellipse 75% 70% at 50% 42%, rgba(6, 6, 9, 0.72) 0%, rgba(6, 6, 9, 0.4) 50%, transparent 75%);
    pointer-events: none;
}
.hero-title {
    font-size: clamp(46px, 7vw, 80px);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 26px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.85), 0 12px 50px rgba(0, 0, 0, 0.6);
}
.hero-subtitle {
    font-size: 19px;
    line-height: 1.75;
    color: #d8d8e6;
    max-width: 640px;
    margin: 0 auto 38px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 6px 28px rgba(0, 0, 0, 0.65);
}
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-lg { padding: 17px 36px; font-size: 16px; }

.hero-glassbar {
    display: inline-flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 52px;
    padding: 16px 32px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(10, 10, 18, 0.4);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.hero-point {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: #d6d6e4;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-point i { color: var(--accent-purple-soft); font-size: 12px; }

.hero-scrollcue {
    position: absolute;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.45);
    font-size: 16px;
    animation: nd-bob 2.2s ease-in-out infinite;
}
@keyframes nd-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.9; }
}

.t-cursor {
    display: inline-block;
    width: 8px; height: 16px;
    background: var(--accent-purple-soft);
    vertical-align: middle;
    animation: nd-blink 1s step-start infinite;
}
@keyframes nd-blink { 50% { opacity: 0; } }
@keyframes nd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ============================================================
   STATUS STRIP
   ============================================================ */
.status-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--secondary-bg);
    padding: 14px 0;
}
.status-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.status-item { display: flex; align-items: center; gap: 8px; }
.status-item strong { color: var(--text-secondary); font-weight: 500; }
.status-ok::before {
    content: '●';
    color: var(--signal-green);
    animation: nd-pulse 2s ease-in-out infinite;
}
@media (max-width: 768px) {
    .status-strip-inner { justify-content: flex-start; }
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card-bg);
}
.stat-item {
    padding: 36px 28px;
    border-right: 1px solid var(--line);
    position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #fff 30%, var(--accent-purple-soft));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 6px;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}
@media (max-width: 900px) {
    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
    .stats-band { grid-template-columns: 1fr; }
    .stat-item { border-right: none !important; border-bottom: 1px solid var(--line); }
    .stat-item:last-child { border-bottom: none; }
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.55);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 36px rgba(124, 58, 237, 0.12);
}
/* corner ticks on hover */
.service-card::before,
.service-card::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border-color: var(--accent-purple-soft);
    border-style: solid;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.service-card::before {
    top: -1px; left: -1px;
    border-width: 1px 0 0 1px;
    border-top-left-radius: var(--radius);
}
.service-card::after {
    bottom: -1px; right: -1px;
    border-width: 0 1px 1px 0;
    border-bottom-right-radius: var(--radius);
}
.service-card:hover::before,
.service-card:hover::after { opacity: 1; }

.sc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.sc-index {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}
.service-icon {
    width: 44px; height: 44px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--accent-purple-soft);
    font-size: 17px;
}
.service-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service-description { font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 20px; }
.code-snippet {
    margin-top: auto;
    background: var(--inset-bg);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 9px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-blue-soft);
}
.code-snippet code { font-family: inherit; color: inherit; }
.code-snippet::before { content: '$ '; color: var(--text-dim); }

/* ============================================================
   FEATURE CARDS (Why Choose)
   ============================================================ */
.feature-card {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.feature-card:hover { border-color: var(--line-strong); background: var(--card-bg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    font-size: 18px;
    color: var(--accent-blue-soft);
    margin-bottom: 18px;
}
.feature-title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-description { font-size: 15px; color: var(--text-secondary); margin: 0; }

/* ============================================================
   WORK / CLIENT CARDS
   ============================================================ */
.work-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.work-media {
    background: #f5f5f7;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    border-bottom: 1px solid var(--line);
}
.work-media img { max-height: 200px; width: auto; max-width: 100%; object-fit: contain; }
.work-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.work-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
}
.work-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.work-desc { font-size: 14.5px; color: var(--text-secondary); margin: 0; }

/* ============================================================
   NETWORKS BANNER
   ============================================================ */
.networks-banner {
    position: relative;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    /* contains the content scrim's negative inset - without this the page scrolls sideways */
    overflow: hidden;
}
.networks-banner { background-position: center 70%; }
.networks-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 6, 9, 0.6) 0%, rgba(11, 11, 19, 0.32) 55%, rgba(6, 6, 9, 0.66) 100%);
}
.networks-content { position: relative; z-index: 2; text-align: center; width: 100%; }
/* soft scrim behind the band text — same pattern as the hero */
.networks-content::before {
    content: '';
    position: absolute;
    inset: -50px -60px;
    z-index: -1;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(6, 6, 9, 0.66) 0%, rgba(6, 6, 9, 0.35) 55%, transparent 78%);
    pointer-events: none;
}
.networks-title {
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
}
.networks-sub {
    font-size: 18px;
    color: #e6e6f0;
    max-width: 640px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 6px 24px rgba(0, 0, 0, 0.6);
}
.networks-metrics {
    margin-top: 42px;
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
}
.networks-metric {
    padding: 0 42px;
    border-right: 1px solid var(--line-strong);
    text-align: center;
}
.networks-metric:last-child { border-right: none; }
.networks-metric .nm-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}
.networks-metric .nm-value { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.networks-metric .nm-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c9c9da;
    margin-top: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
@media (max-width: 640px) {
    .networks-metric { border-right: none; padding: 12px 20px; }
}
@media (max-width: 860px) {
    .networks-banner { padding: 64px 0; }
}

/* ============================================================
   FORMS (contact + login)
   ============================================================ */
.form-panel {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid .form-group.full { grid-column: 1 / -1; }
@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-panel { padding: 26px 20px; }
}
.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 9px;
}
.form-group label i { color: var(--accent-purple-soft); margin-right: 7px; }
.form-control {
    width: 100%;
    padding: 13px 15px;
    background: var(--inset-bg);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control::placeholder { color: var(--text-dim); }
.form-control:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}
textarea.form-control { resize: vertical; min-height: 140px; }

/* notice boxes */
.notice {
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 28px;
    text-align: center;
    border: 1px solid var(--line);
    background: var(--card-bg);
}
.notice i { font-size: 20px; margin-bottom: 8px; display: block; }
.notice p { margin: 0; color: var(--text-primary); font-weight: 600; }
.notice-ok { border-color: rgba(52, 211, 153, 0.4); }
.notice-ok i { color: var(--signal-green); }
.notice-err { border-color: rgba(236, 72, 153, 0.4); }
.notice-err i { color: var(--accent-pink); }

/* ============================================================
   LOGIN CONSOLE
   ============================================================ */
.login-section {
    position: relative;
    padding: calc(var(--header-h) + 70px) 0 100px;
    min-height: 100vh;
    overflow: hidden;
}
.login-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}
.login-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 42px 38px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(124, 58, 237, 0.08);
}
.login-corner {
    position: absolute;
    width: 18px; height: 18px;
    border-color: var(--accent-purple);
    border-style: solid;
    opacity: 0.8;
}
.login-corner.tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; border-top-left-radius: var(--radius-lg); }
.login-corner.tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; border-top-right-radius: var(--radius-lg); }
.login-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; border-bottom-left-radius: var(--radius-lg); }
.login-corner.br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; border-bottom-right-radius: var(--radius-lg); }
.login-head {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 10px;
}
.login-sub {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}
.login-status {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--accent-blue-soft);
    background: rgba(59, 130, 246, 0.06);
    border-left: 2px solid var(--accent-blue);
    padding: 10px 14px;
    border-radius: 0 7px 7px 0;
    margin-bottom: 28px;
}
.login-meta {
    margin-top: 24px;
    padding: 14px 16px;
    background: var(--inset-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 2;
    color: var(--text-secondary);
}
.login-meta i { color: var(--signal-green); margin-right: 7px; }
.login-foot {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: center;
}
.login-foot a { font-family: var(--font-mono); font-size: 13px; }
.login-tagline {
    text-align: center;
    margin-top: 28px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

/* ============================================================
   SUBPAGE HERO
   ============================================================ */
.subhero {
    position: relative;
    padding: calc(var(--header-h) + 80px) 0 70px;
    background-size: cover;
    background-position: center;
    text-align: center;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.subhero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 6, 9, 0.6) 0%, rgba(6, 6, 9, 0.85) 100%);
}
.subhero-content { position: relative; z-index: 2; }
.subhero-title {
    font-size: clamp(34px, 4.5vw, 50px);
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}
.subhero-sub {
    font-size: 18px;
    color: #d8d8e6;
    max-width: 680px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}
.subhero-compact { padding: calc(var(--header-h) + 56px) 0 52px; }

/* page content area */
.page-content { padding: 80px 0; }
.entry-content { font-size: 16.5px; line-height: 1.8; color: var(--text-secondary); }
.entry-content h2, .entry-content h3 { margin-top: 38px; }
.entry-content a { color: var(--accent-blue-soft); }
.entry-content img { border-radius: var(--radius); }

/* ============================================================
   BLOG (text-first cards + sidebar)
   ============================================================ */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: 1fr; }
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.post-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 58, 237, 0.55);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 36px rgba(124, 58, 237, 0.1);
}
/* thumbnail only when the post actually has an image */
.post-card-thumb {
    flex: none;
    width: 150px;
    background-size: cover;
    background-position: center;
    border-left: 1px solid var(--line);
    display: block;
}
@media (max-width: 560px) {
    .post-card-thumb { display: none; }
}
.post-card-body {
    padding: 24px 28px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.post-card-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-purple-soft);
    margin-bottom: 12px;
}
.post-meta {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.post-meta i { color: var(--accent-purple-soft); margin-right: 5px; }
.post-card h2 { margin: 0 0 10px; }
.post-card h2 a {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}
.post-card h2 a:hover { color: var(--accent-purple-soft); }
.entry-summary { font-size: 14.5px; color: var(--text-secondary); margin: 0 0 18px; }
.post-card .entry-summary p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-readmore-link {
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--accent-blue-soft);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.post-readmore-link i { transition: transform 0.2s ease; font-size: 11px; }
.post-readmore-link:hover { color: var(--text-primary); }
.post-readmore-link:hover i { transform: translateX(4px); }

/* featured (first) post: gradient top edge, bigger type */
.post-card.featured { position: relative; }
.post-card.featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-primary);
}
.post-card.featured .post-card-body { padding: 30px 32px; }
.post-card.featured h2 a { font-size: 26px; }
.post-card.featured .entry-summary p { -webkit-line-clamp: 4; }
.post-card.featured .post-card-thumb { width: 220px; }

/* ============================================================
   BLOG SIDEBAR
   ============================================================ */
.blog-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}
@media (max-width: 1024px) {
    .blog-side { position: static; }
}
.side-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.side-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-purple-soft);
    margin-bottom: 6px;
}
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.side-list li:last-child { padding-bottom: 0; border-bottom: none; }
.side-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 3px;
}
.side-list a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    display: block;
}
.side-list a:hover { color: var(--text-primary); }
.side-archive li::before {
    content: '\2192';
    font-family: var(--font-mono);
    color: var(--accent-purple-soft);
    margin-right: 9px;
    font-size: 12px;
}
.side-archive li { display: flex; align-items: baseline; }
.side-archive a { display: inline; }
.side-cta p { font-size: 14px; color: var(--text-secondary); margin: 8px 0 16px; }

/* single post (reading page) */
.single-header {
    padding: calc(var(--header-h) + 64px) 0 46px;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 100% at 50% 0%, rgba(124, 58, 237, 0.12), transparent 70%),
        var(--secondary-bg);
    border-bottom: 1px solid var(--line);
}
.single-header .post-meta { justify-content: center; margin: 18px 0 0; }
.single-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; max-width: 860px; margin: 0 auto; }
.single-article {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 38px 42px;
}
@media (max-width: 640px) {
    .single-article { padding: 24px 20px; }
}
.entry-content h2 {
    font-size: 25px;
    margin: 42px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.entry-content h3 { font-size: 20px; margin-top: 34px; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content blockquote {
    margin: 26px 0;
    padding: 18px 24px;
    background: var(--inset-bg);
    border-left: 3px solid var(--accent-purple);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--inset-bg);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 2px 7px;
    color: var(--accent-blue-soft);
}
.entry-content pre {
    background: var(--inset-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    overflow-x: auto;
    margin: 26px 0;
}
.entry-content pre code { background: none; border: none; padding: 0; }
.entry-content li { margin-bottom: 8px; }
.single-thumb {
    float: left;
    width: 350px; max-width: 100%;
    margin: 0 26px 18px 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}
.single-thumb img { display: block; width: 100%; height: auto; }
.entry-content img:not(.single-thumb img) { max-width: 520px; display: block; margin: 22px auto; }
.post-tags {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}
.post-tags strong { color: var(--text-primary); margin-right: 8px; }
.post-tags a {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 4px 10px;
    margin: 0 6px 6px 0;
    color: var(--text-secondary);
}
.post-tags a:hover { border-color: var(--accent-purple); color: var(--text-primary); }
.post-navigation {
    margin-top: 50px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 18px;
}
.post-navigation a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 11px 18px;
}
.post-navigation a:hover { border-color: var(--accent-purple); color: var(--text-primary); }
@media (max-width: 768px) {
    .single-thumb { float: none; width: 100%; margin: 0 0 20px; }
    .entry-content img:not(.single-thumb img) { max-width: 100%; }
}

/* pagination */
.pagination { margin-top: 50px; text-align: center; }
.pagination .nav-links {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination .page-numbers {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 9px 15px;
}
.pagination .page-numbers.current {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}
.pagination a.page-numbers:hover { border-color: var(--accent-purple); color: var(--text-primary); }

/* empty state */
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state i { font-size: 56px; color: var(--text-dim); margin-bottom: 20px; }

/* ============================================================
   LEGAL / DISCLAIMER
   ============================================================ */
.legal-section { margin-bottom: 44px; }
.legal-section h2 {
    font-size: 24px;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.legal-section h2::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 56px; height: 2px;
    background: var(--gradient-primary);
}
.legal-section ul { margin: 14px 0 14px 28px; }
.legal-section li { margin-bottom: 8px; }
.legal-contact {
    margin-top: 16px;
    padding: 22px 26px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent-purple);
    border-radius: var(--radius);
}
.legal-updated {
    margin-top: 56px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-dim);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-story {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 44px;
    align-items: start;
}
@media (max-width: 1024px) {
    .about-story { grid-template-columns: 1fr; }
}
.about-story .entry-content p { font-size: 17px; }
.about-story-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}
@media (max-width: 1024px) {
    .about-story-side { position: static; }
}
.photo-card {
    background: var(--card-bg);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.photo-card img { display: block; width: 100%; height: auto; }
.photo-card-caption {
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}
.side-fact { font-size: 14px; color: var(--text-secondary); line-height: 1.5; display: block; }

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.about-card:hover { border-color: rgba(124, 58, 237, 0.45); transform: translateY(-3px); }
.about-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.about-card-head h3 { font-size: 19px; margin: 0; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--text-secondary);
}
.checklist li:last-child { border-bottom: none; padding-bottom: 0; }
.checklist i { color: var(--accent-blue-soft); font-size: 12px; flex: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--line);
    padding: 70px 0 0;
    margin-top: 0;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 44px;
    padding-bottom: 54px;
}
.footer-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
}
.footer-heading-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}
.footer-section p { font-size: 14px; color: var(--text-secondary); }
.footer-section ul { list-style: none; margin: 0; padding: 0; }
.footer-section ul li { margin-bottom: 11px; }
.footer-section ul a {
    font-size: 14px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.footer-section ul a i { color: var(--accent-purple-soft); font-size: 12px; width: 14px; }
.footer-section ul a:hover { color: var(--text-primary); }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand span {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
}
.footer-phone {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-blue-soft) !important;
    font-weight: 600;
}
.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-dim);
}
.footer-version {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-content { grid-template-columns: 1fr; }
}

/* ============================================================
   IMAGE-BACKED SECTIONS
   ============================================================ */
.section-img-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.section-img-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 6, 9, 0.74) 0%, rgba(6, 6, 9, 0.5) 50%, rgba(6, 6, 9, 0.78) 100%);
}
.section-img-bg > .container { position: relative; z-index: 2; }
.section-img-bg .feature-card {
    background: rgba(10, 10, 18, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.12);
}
.section-img-bg .feature-card:hover { background: rgba(13, 13, 24, 0.75); }

/* Contact split: visual + form */
.contact-split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 26px;
    align-items: stretch;
    max-width: 1080px;
    margin: 0 auto;
}
.contact-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    min-height: 320px;
}
.contact-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.contact-visual-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 18px 22px;
    background: linear-gradient(180deg, transparent, rgba(6, 6, 9, 0.9));
}
@media (max-width: 860px) {
    .contact-split { grid-template-columns: 1fr; }
    .contact-visual { min-height: 220px; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(124, 58, 237, 0.25) 0%, rgba(59, 130, 246, 0.12) 100%),
        linear-gradient(180deg, rgba(6, 6, 9, 0.62) 0%, rgba(6, 6, 9, 0.52) 100%);
}
.cta-banner > .container { position: relative; z-index: 2; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ?noanim screenshot/test mode */
html.noanim { scroll-behavior: auto; }
html.noanim .hero-cinema { min-height: 760px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .t-line { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: 0.001s !important; }
}

/* ============================================================
   MISC / WP DEFAULTS
   ============================================================ */
.text-center { text-align: center; }
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter { display: block; margin: 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
