/* ---- 0. Self-hosted fonts (Orbitron + Rajdhani, SIL OFL) ---- */
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/orbitron-v35-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/orbitron-v35-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/orbitron-v35-latin-900.woff2') format('woff2');
}
@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/rajdhani-v17-latin-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/rajdhani-v17-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/rajdhani-v17-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/rajdhani-v17-latin-700.woff2') format('woff2');
}

/* ==========================================================================
   ANTHONY MARCUM — SHARED DESIGN SYSTEM
   One stylesheet for index.html, contact.html and whitepapers.html.
   Everything below is written as reusable components/utilities so new pages
   can be built out of the same building blocks instead of copy-pasting CSS.
   ========================================================================== */

/* ---- 1. Design tokens ---------------------------------------------------- */
:root {
    --cyber-cyan: #00ffff;
    --cyber-pink: #ff00ff;
    --cyber-purple: #9d00ff;
    --cyber-blue: #0066ff;
    --cyber-green: #00ff88;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --grid-color: rgba(0, 255, 255, 0.1);

    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-body: #c0c0c0;
    --text-muted: #808080;

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    --radius-sm: 15px;
    --radius-md: 20px;
    --radius-pill: 50px;
}

/* ---- 2. Reset & base ------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[id] {
    scroll-margin-top: 120px;
}

body {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #d0d0d0;
    background: var(--dark-bg);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Use on <body> for pages whose content should be centered in the viewport
   (e.g. contact.html) instead of a top-down scrolling layout. */
body.layout-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ---- 3. Ambient background (grid + glowing orbs) -------------------------
   Reusable on any page: drop in .grid-background once, then any number of
   .orb elements. Each orb is configured entirely via inline custom
   properties, so no page-specific orb classes are needed:

   <div class="orb" style="--orb-size:400px; --orb-color:var(--cyber-cyan);
        top:10%; left:20%; --orb-delay:0s;"></div>
   -------------------------------------------------------------------------- */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    will-change: transform;
    z-index: 0;
}

@keyframes gridMove {
    0%   { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.orb {
    position: fixed;
    width: var(--orb-size, 300px);
    height: var(--orb-size, 300px);
    /* Soft radial gradient instead of filter: blur(80px) -- looks the same,
       but Safari doesn't have to re-blur a huge moving layer every frame. */
    background: radial-gradient(circle closest-side, var(--orb-color, var(--cyber-cyan)) 1%, transparent 100%);
    border-radius: 50%;
    opacity: 0.15;
    will-change: transform;
    z-index: 1;
    animation: float 15s ease-in-out infinite;
    animation-delay: var(--orb-delay, 0s);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(30px, -30px); }
    66%      { transform: translate(-20px, 20px); }
}

/* ---- 4. Page layout -------------------------------------------------------
   .page container: standard page wrapper. Add a width modifier for pages
   that need a narrower, centered column (e.g. contact.html).
   -------------------------------------------------------------------------- */
.page {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page--narrow {
    max-width: 800px;
    text-align: center;
}

/* Shared entrance animation for stacked sections/elements. Use inline
   `style="animation-delay:.4s"` per child to stagger. */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out backwards;
}

/* Staggers every direct child automatically (used by contact.html's card
   grid, so no manual per-item delay is required). */
.stagger > * {
    animation: fadeInUp 0.8s ease-out backwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }

/* ---- 5. Typography --------------------------------------------------------
   .text-gradient: cyan → pink gradient text (logo, section titles).
   .text-gradient--hero: the wider white → cyan → green hero-heading gradient
   with the pulsing glow used on h1s.
   -------------------------------------------------------------------------- */
.text-gradient {
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient--hero {
    background: linear-gradient(135deg, #d6faff 0%, var(--cyber-cyan) 50%, var(--cyber-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Static glow (was an infinite animated drop-shadow, very costly in Safari) */
    filter: drop-shadow(0 0 30px rgba(0, 255, 200, 0.6));
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5)); }
    to   { filter: drop-shadow(0 0 40px rgba(0, 255, 136, 0.7)); }
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-cyan), transparent);
}

.eyebrow {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* ---- 6. Navigation ---------------------------------------------------------
   Sticky top nav, reused as-is on any page that needs one.
   -------------------------------------------------------------------------- */
.summary-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d0d0d0;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    animation: slideDown 1s ease-out;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    border-radius: 0 0 20px 20px;
    transition: border-radius 0.5s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.6vw, 1.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    z-index: 100;
    text-decoration: none;
    white-space: nowrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    z-index: 101;
    padding: 0.5rem;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--cyber-cyan);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--cyber-cyan);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-pink));
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover {
    color: var(--cyber-cyan);
    text-shadow: 0 0 10px var(--cyber-cyan);
}

/* ---- Nav dropdown (desktop): ABOUT opens a submenu of the resume sections.
   In hamburger mode (<=1200px) the submenu is shown expanded inline instead. */
.nav-links .has-dropdown { position: relative; }

.nav-links .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links .caret {
    width: 0.55em;
    height: 0.55em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s ease;
}

.nav-links .has-dropdown:hover .caret,
.nav-links .has-dropdown:focus-within .caret {
    transform: translateY(1px) rotate(225deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 200px;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.9rem;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 110;
}

/* invisible bridge so the menu doesn't close while the cursor crosses the gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
    height: 1rem;
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    white-space: nowrap;
}

.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { background: rgba(0, 255, 255, 0.08); }

/* ---- 7. Buttons ------------------------------------------------------------
   .btn base + modifiers:
     .btn--outline  (back button / filter pills)
     .btn--glow     (primary call-to-action, e.g. "GET IN TOUCH")
     .btn--active   (toggle state for filter pills)
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn--outline {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 255, 0.3);
    color: var(--cyber-cyan);
}

.btn--outline:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateX(-5px);
}

.btn--glow {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #000;
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-green));
    position: relative;
    overflow: hidden;
}

.btn--glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.btn--glow:hover::before { left: 100%; }
.btn--glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.5);
}

/* Small pill button, used for the white-paper category filters. Built on
   top of .btn--outline. */
.btn--filter {
    padding: 0.5rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.25);
    letter-spacing: 1px;
}

.btn--filter:hover {
    border-color: var(--cyber-cyan);
    color: var(--cyber-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.btn--filter.is-active {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 136, 0.15));
    border-color: var(--cyber-green);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}

/* ---- 8. Glass cards --------------------------------------------------------
   .card is the single reusable "glassmorphism" surface used for the resume
   summary box, timeline items, skill groups, certifications, white-paper
   entries and contact cards. Modifiers change the accent color and hover
   behavior; utilities change padding/size.
   -------------------------------------------------------------------------- */
.card {
    position: relative;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 2rem;
    transition: all 0.4s ease;
}

.card--clip {
    overflow: hidden;
}

.card:hover {
    border-color: var(--cyber-cyan);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2);
}

/* Lift-on-hover variants for cards arranged in a vertical stack vs. a grid */
.card--lift-up:hover   { transform: translateY(-5px); }
.card--lift-big:hover  { transform: translateY(-10px); }
.card--push-right:hover{ transform: translateX(10px); }

.card--sm { padding: 1.5rem; }
.card--lg { padding: 2.5rem; }
.card--xl { padding: 3rem; text-align: center; }

/* Pink accent variant (certifications) */
.card--pink {
    border-color: rgba(255, 0, 255, 0.2);
}
.card--pink:hover {
    border-color: var(--cyber-pink);
    box-shadow: 0 15px 40px rgba(255, 0, 255, 0.3);
}

/* Green accent variant (location / highlight cards) */
.card--green {
    border-color: rgba(0, 255, 136, 0.2);
}
.card--green:hover {
    border-color: var(--cyber-green);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

/* Subtle color-wash overlay that fades in on hover (summary box, contact
   cards). Add the .card--wash modifier and a ::before will handle it. */
.card--wash::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.card--wash:hover::before { opacity: 1; }

/* Card content stays above the ::before wash layer */
.card > * { position: relative; z-index: 1; }

/* Card as a clickable link block */
a.card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ---- 9. Pills / tags -------------------------------------------------------
   .pill: rounded, bordered label chip. Reused for skill tags and
   white-paper topic tags. .pill--sm for a denser variant.
   -------------------------------------------------------------------------- */
.pill {
    display: inline-block;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.pill:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--cyber-cyan);
    transform: scale(1.05);
}

.pill--sm {
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
    color: var(--text-body);
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.25);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* ---- 10. Utility layout helpers ------------------------------------------- */
.grid-auto-250 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.grid-auto-300 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

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

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ---- 11. Section spacing ---------------------------------------------------- */
.section {
    margin: 4rem 0;
}

.section--cta {
    text-align: center;
    padding: 4rem 0;
}

/* ---- 12. Subtitles ----------------------------------------------------------
   .subtitle: bold cyan hero subtitle (index.html).
   .subtitle--muted: larger, grey, used under big page headings (contact.html).
   .eyebrow (see §5): smaller grey descriptive line under a heading
   (whitepapers.html).
   -------------------------------------------------------------------------- */
.subtitle {
    font-size: clamp(0.76rem, 2vw, 2rem);
    color: var(--cyber-cyan);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    white-space: nowrap;
}

.subtitle--muted {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    letter-spacing: 2px;
    font-weight: 400;
}

/* ---- 13. Inline info rows ---------------------------------------------------
   Icon + link pairs, laid out in a wrapping row (hero contact details).
   -------------------------------------------------------------------------- */
.info-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.info-item a {
    color: inherit;
    text-decoration: none;
}

.info-item:hover {
    color: var(--cyber-cyan);
    transform: translateY(-2px);
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill, 999px);
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--cyber-cyan);
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 10px var(--cyber-cyan);
    transform: translateY(-2px);
}

/* ---- 14. Vertical timeline --------------------------------------------------
   A connector line with pulsing dots, built from .card.
   -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--cyber-cyan), var(--cyber-pink), var(--cyber-green));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 2rem;
    width: 15px;
    height: 15px;
    background: var(--cyber-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--cyber-cyan);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.3); opacity: 0.7; }
}

.timeline-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyber-cyan);
    margin-bottom: 0.5rem;
}

.timeline-subheading {
    color: var(--cyber-pink);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.timeline-list {
    list-style: none;
    margin-top: 1rem;
}

.timeline-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
    color: var(--text-body);
    line-height: 1.6;
}

.timeline-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--cyber-cyan);
    font-size: 1.2rem;
}

.cert-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyber-pink);
    margin-bottom: 0.5rem;
}

.cert-img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: contain;   /* keeps badges from being cropped or stretched */
    margin: 0 auto 1rem;
}

/* ---- 15. Stat counters ------------------------------------------------------ */
.stat-row {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    flex-wrap: wrap;
}

.stat { text-align: right; }

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    letter-spacing: 1px;
}

/* ---- 16. Filter bar (pill toggle group) -------------------------------------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.15);
}

/* ---- 17. List "entry" component ----------------------------------------------
   A titled, tagged list row built on top of .card — used for the white
   papers list, and reusable for any future "articles/press/projects" list.
   -------------------------------------------------------------------------- */
.entry-list { margin-top: 2rem; }

.entry {
    margin-bottom: 1.25rem;
}

.entry-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.entry-eyebrow {
    font-size: 0.8rem;
    color: var(--cyber-green);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.entry-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-display);
}

.entry-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.35;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.entry-title:hover {
    color: var(--cyber-cyan);
    text-shadow: 0 0 12px var(--cyber-cyan);
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
}

.entry-meta .dot { color: #555; }

.entry-byline {
    font-size: 0.9rem;
    color: var(--cyber-pink);
    font-weight: 600;
}

.entry-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.entry-desc {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-body);
    margin: 0 0 1.1rem;
    max-width: 62ch;
}

.entry-empty {
    color: #909090;
    font-size: 1rem;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.15);
}

/* ---- 18. Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
    .nav-links { gap: 1.2rem; }
    .nav-links a { font-size: 0.95rem; }
}

@media (max-width: 1200px) {
    .site-nav { padding: 1.5rem 1.5rem; }
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 6rem 2rem 2rem;
        border-left: 1px solid rgba(0, 255, 255, 0.3);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.4s ease;
        z-index: 100;
        justify-content: flex-start;
    }

    .nav-links.active { right: 0; }

    .nav-links li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }

    /* Dropdown becomes a plain indented list inside the slide-out menu */
    .nav-links .caret { display: none; }
    .nav-links .dropdown-toggle { display: block; }

    .dropdown-menu {
        position: static;
        min-width: 0;
        margin: 0.75rem 0 0;
        padding: 0 0 0 1rem;
        background: none;
        backdrop-filter: none;
        border: none;
        border-left: 1px solid rgba(0, 255, 255, 0.25);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-menu::before { display: none; }

    .nav-links .dropdown-menu li {
        padding: 0.5rem 0;
        border-bottom: none;
    }

    .nav-links .dropdown-menu a {
        font-size: 1.05rem;
        padding: 0;
        color: var(--text-secondary);
    }

    .nav-links .dropdown-menu a:hover { background: none; }

    .section-title { font-size: 2rem; }

    .grid-auto-250,
    .grid-auto-300,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .info-row { flex-direction: column; gap: 1rem; }

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

    .entry-top { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
    .entry { padding: 1.5rem; }
}

@media (max-width: 640px) {
    .stat-row { gap: 1.4rem; }
    .stat-num { font-size: 1.7rem; }
}
