/* =========================================
   July Life Coach — Hub (here.julylifecoach.com)
   The platform catalog page
   ========================================= */

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

:root {
    --bg-deep: #07090d;
    --bg-surface: #0d1117;
    --bg-card: #131820;
    --bg-card-hover: #1a2230;
    --text-primary: #e6e8ec;
    --text-secondary: #8b919a;
    --text-muted: #565d68;
    --accent: #C27C5A;
    --accent-glow: rgba(194, 124, 90, 0.15);
    --accent-hover: #d4906e;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --font-serif: 'Libre Baskerville', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.section-pad {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 0.85rem 2rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(194, 124, 90, 0.3);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PLATFORM NAV
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hub-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem clamp(1.5rem, 4vw, 3rem);
    background: rgba(7, 9, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.hub-nav-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.hub-brand {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.hub-nav-cats {
    display: flex;
    gap: 1.5rem;
}

.hub-nav-link {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: color 0.2s;
    white-space: nowrap;
}
.hub-nav-link:hover { color: var(--text-primary); }

.hub-nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.hub-nav-map {
    color: var(--accent) !important;
    font-weight: 500;
}

.hub-signin-btn {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-hover);
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.hub-signin-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ─── Account Dropdown ─── */
.hub-account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 180px;
    background: rgba(19, 24, 32, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    pointer-events: none;
    transition: all 0.2s ease;
    overflow: hidden;
    z-index: 200;
    padding: 0.3rem 0;
}
.hub-account-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.hub-dd-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    text-align: left;
}
.hub-dd-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}
.hub-dd-item svg { opacity: 0.6; flex-shrink: 0; }
.hub-dd-item:hover svg { opacity: 1; }
.hub-dd-logout { color: #9b6b6b; }
.hub-dd-logout:hover { color: #d47c7c; background: rgba(180, 80, 80, 0.08); }
.hub-dd-logout svg { stroke: #9b6b6b; }
.hub-dd-logout:hover svg { stroke: #d47c7c; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTINUE JOURNEY — FLOATING FAB
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.journey-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(194, 124, 90, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.6) translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.journey-fab.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.journey-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(194, 124, 90, 0.55);
}
.journey-fab.active {
    background: var(--accent-hover);
    transform: scale(0.95) rotate(45deg);
}

.journey-popup {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    z-index: 89;
    width: 320px;
    max-height: 400px;
    background: rgba(19, 24, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-hover);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    pointer-events: none;
    transition: all 0.25s ease;
    overflow: hidden;
}
.journey-popup.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.journey-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text-primary);
}
.journey-popup-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.journey-popup-close:hover { color: var(--text-primary); }

.journey-popup-list {
    padding: 0.5rem;
    overflow-y: auto;
    max-height: 300px;
}

.journey-popup-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    transition: all 0.15s;
    text-decoration: none;
}
.journey-popup-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.journey-popup-icon { font-size: 1.4rem; flex-shrink: 0; }
.journey-popup-info { display: flex; flex-direction: column; }
.journey-popup-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}
.journey-popup-status {
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 500;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FEATURED HERO CAROUSEL
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hub-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    padding: 5rem clamp(2rem, 6vw, 5rem) 3.5rem;
    margin-top: 52px; /* nav height */
    overflow: hidden;
}

/* Individual slides */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
}
.hero-slide--active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: heroKenBurns 20s ease-in-out infinite alternate;
}

.hero-slide-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 9, 13, 0.7) 0%, rgba(13, 17, 23, 0.55) 50%, rgba(7, 9, 13, 0.75) 100%);
}

/* Bottom fade into page background */
.hub-hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-deep) 100%);
    z-index: 2;
}

@keyframes heroKenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-10px, -5px); }
}

/* Dot navigation */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    right: clamp(2rem, 6vw, 5rem);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.hero-dot:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.15);
}
.hero-dot--active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.15);
}

.hub-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hub-hero-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    margin-bottom: 1.2rem;
}

.hub-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hub-hero-desc {
    font-size: clamp(0.88rem, 1.3vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.hub-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}

.meta-pill {
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(7, 9, 13, 0.65);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.meta-pill--free {
    color: var(--accent);
    border-color: rgba(194, 124, 90, 0.35);
    background: rgba(7, 9, 13, 0.7);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FEATURED WRITING
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.featured-writing {
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
    border-top: 1px solid var(--border);
}

.featured-card {
    display: flex;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s ease;
    text-decoration: none;
    color: inherit;
}
.featured-card:hover {
    border-color: rgba(194, 124, 90, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(194, 124, 90, 0.08), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.featured-card-accent {
    width: 4px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(194, 124, 90, 0.3) 100%);
    border-radius: 12px 0 0 12px;
}

.featured-card-content {
    padding: 1.8rem 2rem;
    flex: 1;
    min-width: 0;
}

.featured-date {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.featured-title {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 0.7rem;
    color: var(--text-primary);
}

.featured-teaser {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.2s;
}
.featured-card:hover .featured-cta {
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .featured-card-content {
        padding: 1.3rem 1.2rem;
    }
    .featured-teaser {
        -webkit-line-clamp: 4;
    }
}

/* -- Reflections Section -- */
.reflections-section {
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
    border-top: 1px solid var(--border);
}
.reflections-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.2rem;
}
.reflection-card {
    display: flex;
    gap: 0.9rem;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--border);
}
.reflection-card:first-child {
    padding-top: 0;
}
.reflection-card:last-child {
    border-bottom: none;
}
.reflection-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--bg-card);
    overflow: hidden;
    margin-top: 2px;
}
.reflection-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reflection-body {
    flex: 1;
    min-width: 0;
}
.reflection-author {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}
.reflection-author span {
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.4rem;
}
.reflection-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}
.reflection-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
}
.reflection-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(194, 124, 90, 0.1);
    color: var(--accent);
}
.reflections-see-all {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.2s;
    margin-top: 0.5rem;
}
.reflections-see-all:hover {
    color: var(--accent-hover);
}

/* -- Collapsible Section Headers -- */
.section-header-toggle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    padding: 0.2rem 0;
    border-radius: 6px;
    transition: opacity 0.2s;
}
.section-header-toggle:hover {
    opacity: 0.85;
}
.section-header-text {
    flex: 1;
    min-width: 0;
}
/* Remove bottom margin from row-sub inside toggle since the
   collapsible-content provides its own spacing */
.section-header-toggle .row-sub {
    margin-bottom: 0;
}
.section-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    margin-top: 0.35rem;
    margin-left: 0.75rem;
    transition: transform 0.3s ease, color 0.2s;
}
.section-header-toggle:hover .section-chevron {
    color: var(--text-secondary);
}
/* Expanded state: chevron points down (default SVG orientation) */
.section-header-toggle[aria-expanded="true"] .section-chevron {
    transform: rotate(0deg);
}
/* Collapsed state: chevron points right */
.section-header-toggle[aria-expanded="false"] .section-chevron {
    transform: rotate(-90deg);
}

/* Collapsible content wrapper */
.collapsible-content {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}
.collapsible-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    pointer-events: none;
}
/* Add spacing above content when expanded */
.collapsible-content:not(.collapsed) {
    margin-top: 1.8rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CATALOG SECTIONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.catalog-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    border-top: 1px solid var(--border);
}

.row-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.row-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
}

/* ─── Experience Card ─── */
.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.exp-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.exp-visual {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    transition: filter 0.4s ease;
}

/* Photo and gradient layers -- hidden (mesh gradient system replaces them) */
.exp-photo-bg,
.exp-gradient-over {
    display: none;
}

/* Mesh gradient hover: subtle brightening */
.exp-card:hover .exp-visual {
    filter: brightness(1.15) saturate(1.1);
}

.exp-icon {
    position: relative;
    z-index: 2;
    font-size: 2.8rem;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.3));
}

/* ---- Mesh Gradient System ----
   Category color families with subtle breathing animation.
   Photo backgrounds replaced with pure-CSS mesh gradients.
   On mobile (56x56), the mesh naturally simplifies to a radial glow. */

/* Grain texture overlay */
.exp-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

@keyframes meshBreathe {
    0%, 100% { background-position: 30% 40%, 70% 20%, 50% 80%; }
    33% { background-position: 55% 30%, 35% 65%, 70% 35%; }
    66% { background-position: 40% 60%, 60% 40%, 30% 60%; }
}

/* Self-Discovery: warm amber / terracotta */
.exp-visual--sa, .exp-visual--rm, .exp-visual--pm,
.exp-visual--af, .exp-visual--res, .exp-visual--space,
.exp-visual--nu, .exp-visual--sub, .exp-visual--sao,
.exp-visual--aita, .exp-visual--empathy, .exp-visual--pop {
    background:
        radial-gradient(ellipse at 25% 40%, rgba(194, 124, 90, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 25%, rgba(180, 100, 60, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 55% 80%, rgba(139, 69, 19, 0.25) 0%, transparent 55%),
        #1a1210;
    background-size: 150% 150%;
    animation: meshBreathe 20s ease-in-out infinite;
}

/* Growth Challenges: teal / emerald */
.exp-visual--am, .exp-visual--enc, .exp-visual--weight,
.exp-visual--proc, .exp-visual--offering, .exp-visual--flip,
.exp-visual--cz {
    background:
        radial-gradient(ellipse at 30% 35%, rgba(74, 139, 127, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 70%, rgba(45, 125, 107, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 15%, rgba(26, 74, 63, 0.35) 0%, transparent 55%),
        #0d1818;
    background-size: 150% 150%;
    animation: meshBreathe 20s ease-in-out infinite;
}

/* Practice Kit: warm gold / premium */
.exp-visual--ho, .exp-visual--ll, .exp-visual--seq, .exp-visual--pkw {
    background:
        radial-gradient(ellipse at 35% 30%, rgba(196, 163, 90, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse at 65% 70%, rgba(184, 148, 61, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(107, 86, 48, 0.25) 0%, transparent 55%),
        #181510;
    background-size: 150% 150%;
    animation: meshBreathe 20s ease-in-out infinite;
}

/* Deep Teachings: twilight purple / indigo */
.exp-visual--conv, .exp-visual--heart, .exp-visual--karma,
.exp-visual--do, .exp-visual--self, .exp-visual--lib {
    background:
        radial-gradient(ellipse at 25% 35%, rgba(123, 94, 167, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 65%, rgba(93, 78, 140, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(45, 31, 78, 0.35) 0%, transparent 55%),
        #12101a;
    background-size: 150% 150%;
    animation: meshBreathe 20s ease-in-out infinite;
}

/* Practice Tools: sage / earth green */
.exp-visual--guide, .exp-visual--medteach, .exp-visual--prompts,
.exp-visual--rtc, .exp-visual--map {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(122, 155, 107, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 25%, rgba(92, 138, 80, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 75%, rgba(45, 74, 37, 0.3) 0%, transparent 55%),
        #101810;
    background-size: 150% 150%;
    animation: meshBreathe 20s ease-in-out infinite;
}

/* Stagger animation delays so cards within a category drift independently */
.exp-visual--rm, .exp-visual--enc, .exp-visual--ll, .exp-visual--heart, .exp-visual--medteach { animation-delay: -4s; }
.exp-visual--pm, .exp-visual--weight, .exp-visual--seq, .exp-visual--karma, .exp-visual--prompts { animation-delay: -8s; }
.exp-visual--af, .exp-visual--proc, .exp-visual--pkw, .exp-visual--do, .exp-visual--rtc { animation-delay: -12s; }
.exp-visual--res, .exp-visual--offering, .exp-visual--self, .exp-visual--map { animation-delay: -16s; }
.exp-visual--space, .exp-visual--flip { animation-delay: -3s; }
.exp-visual--nu, .exp-visual--cz { animation-delay: -7s; }
.exp-visual--sub { animation-delay: -11s; }
.exp-visual--sao { animation-delay: -5s; }
.exp-visual--aita { animation-delay: -9s; }
.exp-visual--empathy { animation-delay: -13s; }
.exp-visual--pop { animation-delay: -15s; }
.exp-visual--lib { animation-delay: -6s; }

.exp-body {
    padding: 1.2rem 1.3rem 1.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.exp-body h3 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.exp-body p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.exp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

.exp-type {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.exp-tag {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 0.22rem 0.55rem;
    border-radius: 3px;
}

.exp-tag--premium {
    color: #d4a843;
    background: rgba(212, 168, 67, 0.12);
}

.exp-card--premium {
    border-color: rgba(212, 168, 67, 0.15);
}
.exp-card--premium:hover {
    border-color: rgba(212, 168, 67, 0.3);
}

.exp-card--map {
    border-style: dashed;
}

.exp-card--browse .exp-visual { opacity: 0.7; }
.exp-card--browse:hover .exp-visual { opacity: 1; }

/* ─── Bookmark Button ─── */
.exp-card {
    position: relative;
}
.bookmark-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(7, 9, 13, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transform: scale(1);
    transition: all 0.25s ease;
    padding: 0;
}
.exp-card:hover .bookmark-btn {
    opacity: 1;
    transform: scale(1);
}
.bookmark-btn:hover {
    background: rgba(7, 9, 13, 0.8);
    border-color: rgba(255, 255, 255, 0.18);
}
.bookmark-btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
    transition: all 0.2s ease;
}
.bookmark-btn:hover svg {
    stroke: var(--text-primary);
}
.bookmark-btn.active {
    opacity: 1;
    background: rgba(194, 124, 90, 0.2);
    border-color: rgba(194, 124, 90, 0.3);
}
.bookmark-btn.active svg {
    stroke: var(--accent);
    fill: var(--accent);
}
.bookmark-btn.active:hover {
    background: rgba(194, 124, 90, 0.3);
}

/* ─── Favorites Section ─── */
.favorites-section {
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
    background: linear-gradient(180deg, rgba(194, 124, 90, 0.04) 0%, transparent 100%);
    border-top: 1px solid rgba(194, 124, 90, 0.1);
}
.favorites-section .row-title {
    color: var(--accent);
}
.favorites-section .row-sub {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .bookmark-btn {
        opacity: 1;
        transform: scale(1);
        top: 50%;
        right: 10px;
        margin-top: -15px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hub-footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-brand {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.footer-links { margin-bottom: 0.5rem; }
.footer-links a, .footer-legal a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-links a:hover, .footer-legal a:hover { color: var(--text-primary); }
.footer-legal { margin-bottom: 1rem; font-size: 0.75rem; }
.footer-copy { font-size: 0.72rem; opacity: 0.5; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HAMBURGER MENU
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hub-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}
.hub-menu-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }

.hub-mobile-menu {
    position: fixed;
    top: 52px; left: 0; right: 0;
    z-index: 99;
    background: rgba(7, 9, 13, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
}
.hub-mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.hub-mobile-menu a {
    display: block;
    padding: 0.85rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s;
}
.hub-mobile-menu a:hover,
.hub-mobile-menu a.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .hub-nav-cats { display: none; }
    .hub-menu-btn { display: flex !important; }
    .hub-hero { min-height: 400px; padding-top: 4rem; }
    .hub-hero-title { font-size: 2rem; }
    .catalog-grid { grid-template-columns: 1fr; }

    /* Compact horizontal cards on mobile */
    .exp-card {
        flex-direction: row;
        align-items: center;
    }
    .exp-visual {
        height: auto;
        width: 56px;
        min-height: 56px;
        border-radius: 10px;
        margin: 0.75rem 0 0.75rem 0.75rem;
    }
    /* Disable mesh animation on mobile to save battery */
    .exp-visual {
        animation: none !important;
    }
    .exp-visual::after {
        display: none; /* grain not visible at 56x56 */
    }
    .exp-icon {
        font-size: 1.6rem;
    }
    .exp-body {
        padding: 0.9rem 1rem;
    }
    .exp-body h3 {
        font-size: 0.88rem;
        margin-bottom: 0.2rem;
    }
    .exp-body p {
        font-size: 0.78rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .exp-meta {
        margin-top: 0.5rem;
        padding-top: 0;
        border-top: none;
    }
}

@media (max-width: 480px) {
    .hub-nav { padding: 0.8rem 1rem; }
    .hub-hero { padding: 3.5rem 1.2rem 2.5rem; }
    .hub-hero-title { font-size: 1.7rem; }
    .hub-hero-desc { font-size: 0.85rem; }
}

