/* ═══════════════════════════════════════════════════════════
   HUETO ECOSYSTEM — Main Stylesheet v2.0
   Apple-inspired minimalist design
   Author: Luis Miguel Hueto Guerrero
   ═══════════════════════════════════════════════════════════ */

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

:root {
    --black: #1d1d1f;
    --gray-1: #6e6e73;
    --gray-2: #86868b;
    --gray-3: #c7c7cc;
    --gray-4: #f5f5f7;
    --white: #ffffff;
    --bg: #fafafa;
    --accent-hub: #0a0a0a;
    --accent-grid: #0071e3;
    --accent-edu: #30d158;
    --accent-build: #ff9f0a;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 980px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 50px rgba(0,0,0,0.1);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.08);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); color: var(--black); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ─── UTILITIES ─── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 32px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ─── SKIP LINK ─── */
.skip-link:focus {
    position: fixed; top: 10px; left: 10px; z-index: 9999;
    padding: 12px 24px; background: var(--black); color: var(--white);
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
    clip: auto; width: auto; height: auto;
}

/* ═══════════ NAVIGATION ═══════════ */
.site-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 40px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky; top: 0; z-index: 100;
    transition: var(--transition);
}

.site-nav.scrolled {
    padding: 10px 40px;
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-brand { display: flex; align-items: center; gap: 10px; }

.nav-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    color: var(--white); font-weight: 700; font-size: 17px;
    letter-spacing: -0.5px;
}

.nav-logo.hub { background: linear-gradient(135deg, #0a0a0a, #2c2c2e); }
.nav-logo.grid { background: linear-gradient(135deg, #001d3d, #0071e3); }
.nav-logo.edu { background: linear-gradient(135deg, #064e3b, #30d158); }
.nav-logo.build { background: linear-gradient(135deg, #78350f, #ff9f0a); }

.nav-title { font-weight: 600; font-size: 17px; color: var(--black); letter-spacing: -0.3px; }

.nav-links {
    display: flex; gap: 28px; align-items: center;
}

.nav-links a,
.nav-links .menu-item a {
    font-size: 13px; color: var(--gray-1); font-weight: 400;
    letter-spacing: -0.1px; transition: var(--transition);
    padding: 4px 0;
}

.nav-links a:hover,
.nav-links .menu-item a:hover { color: var(--black); }

.nav-links .current-menu-item a,
.nav-links .current_page_item a { color: var(--black); font-weight: 500; }

/* Language Switcher */
.lang-switcher { display: flex; align-items: center; gap: 4px; margin-left: 8px; padding-left: 16px; border-left: 1px solid rgba(0,0,0,0.08); }
.lang-link { font-size: 12px; font-weight: 500; color: var(--gray-2); padding: 3px 8px; border-radius: var(--radius-sm); transition: var(--transition); }
.lang-link:hover { color: var(--black); background: var(--gray-4); }
.lang-link.active { color: var(--black); background: var(--gray-4); }
.lang-sep { font-size: 11px; color: var(--gray-3); }
/* Polylang list items */
.lang-switcher li { display: inline-flex; }
.lang-switcher li a { font-size: 12px; font-weight: 500; color: var(--gray-2); padding: 3px 8px; border-radius: var(--radius-sm); }
.lang-switcher li.current-lang a { color: var(--black); background: var(--gray-4); }

/* Mobile Menu Button */
.nav-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; position: relative; padding: 0;
}
.nav-menu-btn span {
    display: block; width: 18px; height: 1.5px; background: var(--black);
    margin: 4px auto; transition: var(--transition); border-radius: 1px;
}
.nav-menu-btn.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ═══════════ HERO ═══════════ */
.hero {
    padding: 110px 32px 90px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-hero {
    padding: 80px 32px 60px;
    text-align: center;
}

.hero-tag {
    display: inline-block; padding: 6px 18px; border-radius: var(--radius-pill);
    font-size: 12px; font-weight: 600; letter-spacing: 0.8px;
    text-transform: uppercase; margin-bottom: 24px;
}

.hero-tag.hub { background: rgba(10,10,10,0.06); color: var(--accent-hub); }
.hero-tag.grid { background: rgba(0,113,227,0.08); color: var(--accent-grid); }
.hero-tag.edu { background: rgba(48,209,88,0.1); color: #059669; }
.hero-tag.build { background: rgba(255,159,10,0.1); color: #b45309; }

.hero-title {
    font-size: clamp(38px, 6vw, 62px); font-weight: 700; color: var(--black);
    letter-spacing: -2.5px; line-height: 1.04; margin-bottom: 22px;
}

.hero-title-accent { color: var(--gray-2); }

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 19px); color: var(--gray-1);
    line-height: 1.6; max-width: 600px; margin: 0 auto 36px;
    font-weight: 400; letter-spacing: -0.2px;
}

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.hero-cta {
    display: inline-flex; align-items: center; padding: 14px 28px;
    border-radius: var(--radius-pill); border: none; color: var(--white);
    font-size: 15px; font-weight: 500; letter-spacing: -0.2px;
    transition: var(--transition); font-family: var(--font);
}
.hero-cta:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.hero-cta.hub { background: var(--accent-hub); color: var(--white); }
.hero-cta.grid { background: var(--accent-grid); }
.hero-cta.edu { background: var(--accent-edu); color: #064e3b; }
.hero-cta.build { background: var(--accent-build); color: #78350f; }

.hero-cta-outline {
    display: inline-flex; align-items: center; padding: 14px 28px;
    border-radius: var(--radius-pill); border: 1.5px solid rgba(0,0,0,0.15);
    font-size: 15px; font-weight: 500; color: var(--black);
    letter-spacing: -0.2px; transition: var(--transition);
    background: transparent; font-family: var(--font);
}
.hero-cta-outline:hover { background: var(--gray-4); transform: scale(1.03); }

/* ═══════════ STATS BAR ═══════════ */
.stats-bar {
    padding: 36px 0;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.stats-grid { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { font-size: 36px; font-weight: 700; color: var(--black); letter-spacing: -1.5px; }
.stat-plus { font-size: 24px; font-weight: 700; color: var(--accent-grid); }
.stat-label { display: block; font-size: 13px; color: var(--gray-2); font-weight: 400; margin-top: 2px; letter-spacing: -0.1px; }

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }

.section-title {
    font-size: clamp(28px, 3.5vw, 36px); font-weight: 700; color: var(--black);
    letter-spacing: -1.5px; margin-bottom: 44px; text-align: center;
}

.section-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 44px; flex-wrap: wrap; gap: 16px;
}
.section-header .section-title { margin-bottom: 0; text-align: left; }
.section-link { font-size: 14px; color: var(--accent-grid); font-weight: 500; }
.section-link:hover { text-decoration: underline; }

.about-text {
    font-size: 17px; color: var(--gray-1); line-height: 1.75;
    letter-spacing: -0.2px; max-width: 640px; margin: 0 auto;
}

.text-link {
    display: inline-block; font-size: 15px; color: var(--accent-grid);
    font-weight: 500; margin-top: 20px; letter-spacing: -0.2px;
}
.text-link:hover { text-decoration: underline; }

/* ═══════════ VENTURES CARDS ═══════════ */
.ventures-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.venture-card {
    background: var(--bg); border-radius: var(--radius-xl); padding: 32px 28px;
    border: 1px solid rgba(0,0,0,0.06); transition: var(--transition);
    display: flex; flex-direction: column;
}
.venture-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-hover);
    border-color: rgba(0,0,0,0.1);
}

.venture-icon-wrap {
    width: 52px; height: 52px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.venture-icon-wrap.grid { background: rgba(0,113,227,0.1); }
.venture-icon-wrap.edu { background: rgba(48,209,88,0.1); }
.venture-icon-wrap.build { background: rgba(255,159,10,0.1); }
.venture-icon { font-size: 24px; }

.venture-badge {
    display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
    margin-bottom: 12px; width: fit-content;
}
.venture-badge.grid { background: rgba(0,113,227,0.1); color: var(--accent-grid); }
.venture-badge.edu { background: rgba(48,209,88,0.1); color: #059669; }
.venture-badge.build { background: rgba(255,159,10,0.1); color: #b45309; }

.venture-title { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 10px; }
.venture-desc { font-size: 14px; color: var(--gray-1); line-height: 1.6; letter-spacing: -0.1px; flex: 1; }

.venture-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.venture-tags li {
    font-size: 11px; color: var(--gray-2); background: rgba(0,0,0,0.03);
    padding: 3px 10px; border-radius: var(--radius-pill); font-weight: 500;
}

.venture-link {
    display: inline-block; font-size: 14px; font-weight: 500; color: var(--accent-grid);
    margin-top: 18px; letter-spacing: -0.2px;
}

/* ═══════════ SERVICES PREVIEW ═══════════ */
.services-preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.service-preview-item {
    padding: 28px 26px; background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06); transition: var(--transition);
}
.service-preview-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.service-number {
    font-size: 32px; font-weight: 800; color: var(--gray-3);
    letter-spacing: -1.5px; margin-bottom: 8px;
}

.service-preview-title { font-size: 18px; font-weight: 600; letter-spacing: -0.4px; margin-bottom: 8px; }
.service-preview-desc { font-size: 14px; color: var(--gray-1); line-height: 1.6; }

/* ═══════════ SERVICES DETAIL ═══════════ */
.service-section-header { text-align: center; margin-bottom: 44px; }
.service-section-header .section-title { margin-bottom: 0; margin-top: 12px; }
.service-section-note { font-size: 14px; color: var(--gray-2); margin-top: 8px; font-style: italic; }

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

.service-detail-card {
    padding: 32px 28px; background: var(--bg); border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06); transition: var(--transition);
}
.section-alt .service-detail-card { background: var(--white); }
.service-detail-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.service-detail-number { font-size: 28px; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.service-detail-number.grid { color: var(--accent-grid); }
.service-detail-number.edu { color: var(--accent-edu); }
.service-detail-number.build { color: var(--accent-build); }

.service-detail-title { font-size: 18px; font-weight: 600; letter-spacing: -0.4px; margin-bottom: 10px; }
.service-detail-desc { font-size: 14px; color: var(--gray-1); line-height: 1.6; margin-bottom: 16px; }

.service-detail-includes { padding-left: 0; }
.service-detail-includes li {
    font-size: 13px; color: var(--gray-2); padding: 5px 0; padding-left: 18px;
    position: relative; line-height: 1.5;
}
.service-detail-includes li::before {
    content: ''; position: absolute; left: 0; top: 12px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--gray-3);
}

/* ═══════════ TESTIMONIALS ═══════════ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.testimonial-card {
    background: var(--bg); border-radius: var(--radius-lg); padding: 30px 26px;
    border: 1px solid rgba(0,0,0,0.06);
}
.section-alt .testimonial-card { background: var(--white); }

.testimonial-quote { font-size: 40px; color: var(--gray-3); line-height: 1; margin-bottom: 8px; }
.testimonial-text { font-size: 15px; color: var(--gray-1); line-height: 1.65; margin-bottom: 20px; }
.testimonial-text p { margin: 0; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--black); }
.testimonial-role { font-size: 12px; color: var(--gray-2); }

/* ═══════════ BLOG CARDS ═══════════ */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.blog-card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.blog-card-link { display: block; color: inherit; }

.blog-card-image { aspect-ratio: 16/11; overflow: hidden; background: var(--gray-4); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-card-image img { transform: scale(1.04); }

.blog-card-image-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0a0a0a, #2c2c2e);
}
.blog-card-image-placeholder span { font-size: 32px; font-weight: 700; color: rgba(255,255,255,0.15); }

.blog-card-body { padding: 18px 20px; }

.post-categories { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.cat-badge {
    font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-pill);
    letter-spacing: 0.3px; text-transform: uppercase;
    background: rgba(0,0,0,0.04); color: var(--gray-1);
}
.cat-grid { background: rgba(0,113,227,0.08); color: var(--accent-grid); }
.cat-edu { background: rgba(48,209,88,0.1); color: #059669; }
.cat-build { background: rgba(255,159,10,0.1); color: #b45309; }

.blog-card-title { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.35; margin-bottom: 8px; }

.post-meta { display: flex; gap: 12px; align-items: center; }
.post-date { font-size: 12px; color: var(--gray-2); }
.post-reading-time { font-size: 12px; color: var(--gray-3); }

/* Blog Grid Full (listing page) */
.blog-grid-full { display: flex; flex-direction: column; gap: 16px; }

.blog-card-horizontal {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}
.blog-card-horizontal:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.blog-card-h-link { display: flex; color: inherit; }

.blog-card-h-image { width: 260px; min-height: 180px; flex-shrink: 0; overflow: hidden; background: var(--gray-4); }
.blog-card-h-image img { width: 100%; height: 100%; object-fit: cover; }

.blog-card-h-body { padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.blog-card-h-title { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; line-height: 1.3; margin-bottom: 8px; }
.blog-card-h-excerpt { font-size: 14px; color: var(--gray-1); line-height: 1.6; margin-bottom: 12px; }

/* Blog Filters */
.blog-filters, .portfolio-filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 20px; border-radius: var(--radius-pill); border: 1px solid rgba(0,0,0,0.1);
    background: transparent; font-size: 13px; font-weight: 500; color: var(--gray-1);
    transition: var(--transition); font-family: var(--font);
}
.filter-btn:hover { background: var(--gray-4); color: var(--black); }
.filter-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* Pagination */
.blog-pagination { margin-top: 40px; text-align: center; }
.blog-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.blog-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    font-size: 14px; color: var(--gray-1); border: 1px solid rgba(0,0,0,0.08);
    transition: var(--transition);
}
.blog-pagination .page-numbers:hover { background: var(--gray-4); }
.blog-pagination .page-numbers.current { background: var(--black); color: var(--white); border-color: var(--black); }
.blog-pagination .prev, .blog-pagination .next { width: auto; padding: 0 16px; font-weight: 500; }

/* ═══════════ SINGLE ARTICLE ═══════════ */
.article-header { padding: 80px 32px 40px; text-align: center; }
.article-title {
    font-size: clamp(30px, 5vw, 44px); font-weight: 700; color: var(--black);
    letter-spacing: -1.8px; line-height: 1.1; margin-top: 16px; margin-bottom: 20px;
    max-width: 720px; margin-left: auto; margin-right: auto;
}
.article-meta {
    display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap;
}
.article-author { display: flex; align-items: center; gap: 8px; }
.article-author img { width: 32px; height: 32px; border-radius: 50%; }
.article-author span { font-size: 14px; font-weight: 500; color: var(--black); }

.article-featured-image { margin-bottom: 40px; }
.article-featured-image img { border-radius: var(--radius-lg); width: 100%; }

.article-content { padding-bottom: 40px; }
.article-content h2 { font-size: 26px; font-weight: 700; letter-spacing: -1px; margin: 36px 0 16px; }
.article-content h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; margin: 28px 0 12px; }
.article-content p { font-size: 17px; color: var(--gray-1); line-height: 1.75; margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 16px 0; padding-left: 24px; }
.article-content li { font-size: 16px; color: var(--gray-1); line-height: 1.7; margin-bottom: 8px; list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content blockquote {
    border-left: 3px solid var(--accent-grid); padding: 16px 24px; margin: 24px 0;
    background: var(--gray-4); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-content blockquote p { color: var(--black); font-style: italic; margin-bottom: 0; }
.article-content code { font-size: 14px; background: var(--gray-4); padding: 2px 8px; border-radius: 4px; }
.article-content pre {
    background: var(--black); color: #e5e5ea; padding: 24px; border-radius: var(--radius-md);
    overflow-x: auto; margin: 24px 0; font-size: 14px; line-height: 1.6;
}
.article-content pre code { background: transparent; padding: 0; color: inherit; }
.article-content img { border-radius: var(--radius-md); margin: 24px 0; }
.article-content a { color: var(--accent-grid); }
.article-content a:hover { text-decoration: underline; }

.article-tags { padding: 20px 0; border-top: 1px solid rgba(0,0,0,0.06); }
.article-tag {
    display: inline-block; font-size: 13px; color: var(--gray-2); margin-right: 8px;
    margin-bottom: 6px; transition: var(--transition);
}
.article-tag:hover { color: var(--accent-grid); }

/* Author Bio */
.author-bio-section { padding: 40px 0; }
.author-bio-card {
    display: flex; gap: 20px; align-items: center; padding: 28px;
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06);
}
.author-bio-card img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.author-bio-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.author-bio-desc { font-size: 14px; color: var(--gray-1); line-height: 1.6; margin-bottom: 6px; }
.author-bio-link { font-size: 13px; color: var(--accent-grid); font-weight: 500; }

/* Post Navigation */
.post-navigation { padding: 40px 0; border-top: 1px solid rgba(0,0,0,0.06); }
.post-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-nav-link {
    display: block; padding: 20px 24px; background: var(--white);
    border-radius: var(--radius-md); border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}
.post-nav-link:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.post-nav-link.next { text-align: right; }
.post-nav-label { font-size: 12px; color: var(--gray-2); display: block; margin-bottom: 4px; }
.post-nav-title { font-size: 15px; font-weight: 600; color: var(--black); letter-spacing: -0.3px; }

/* ═══════════ TIMELINE ═══════════ */
.timeline { position: relative; max-width: 700px; margin: 0 auto; padding-left: 32px; }
.timeline::before {
    content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
    width: 2px; background: var(--gray-4);
}

.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    position: absolute; left: -32px; top: 6px;
    width: 16px; height: 16px; border-radius: 50%;
    border: 3px solid var(--bg); z-index: 1;
}
.timeline-marker.hub { background: var(--accent-hub); }
.timeline-marker.grid { background: var(--accent-grid); }
.timeline-marker.edu { background: var(--accent-edu); }
.timeline-marker.build { background: var(--accent-build); }

.timeline-content {
    background: var(--white); padding: 22px 24px; border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.06);
}

.timeline-date { font-size: 12px; font-weight: 600; color: var(--gray-2); text-transform: uppercase; letter-spacing: 0.5px; }
.timeline-title { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; margin: 6px 0 4px; }
.timeline-company { font-size: 14px; color: var(--accent-grid); font-weight: 500; margin-bottom: 8px; }
.timeline-desc { font-size: 14px; color: var(--gray-1); line-height: 1.6; }

/* ═══════════ SKILLS ═══════════ */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.skill-category {
    padding: 28px 24px; background: var(--bg); border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06);
}
.section-alt .skill-category { background: var(--white); }

.skill-cat-icon { font-size: 28px; margin-bottom: 14px; }
.skill-cat-icon.grid { color: var(--accent-grid); }
.skill-cat-icon.edu { color: var(--accent-edu); }
.skill-cat-icon.build { color: var(--accent-build); }
.skill-cat-icon.hub { color: var(--accent-hub); }

.skill-cat-title { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 14px; }

.skill-list li {
    font-size: 14px; color: var(--gray-1); padding: 5px 0 5px 16px;
    position: relative; line-height: 1.5;
}
.skill-list li::before {
    content: ''; position: absolute; left: 0; top: 12px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--gray-3);
}

/* ═══════════ PORTFOLIO ═══════════ */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.portfolio-item { transition: var(--transition); }
.portfolio-item.hidden { display: none; }

.portfolio-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 4/3; cursor: pointer;
}

.portfolio-image { width: 100%; height: 100%; }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.portfolio-card:hover .portfolio-image img { transform: scale(1.06); }

.portfolio-image-placeholder {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
}
.portfolio-image-placeholder.grid { background: linear-gradient(135deg, #001d3d, #0071e3); }
.portfolio-image-placeholder.edu { background: linear-gradient(135deg, #064e3b, #30d158); }
.portfolio-image-placeholder.build { background: linear-gradient(135deg, #78350f, #ff9f0a); }
.portfolio-image-placeholder span { font-size: 48px; font-weight: 700; color: rgba(255,255,255,0.15); }

.portfolio-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
    display: flex; align-items: flex-end; padding: 24px;
    opacity: 0; transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-info { color: var(--white); }
.portfolio-title { font-size: 18px; font-weight: 600; margin: 8px 0 4px; }
.portfolio-meta { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.portfolio-excerpt { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.5; margin-bottom: 8px; }
.portfolio-link { font-size: 13px; color: var(--white); font-weight: 500; }

.vertical-badge {
    display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
    font-size: 10px; font-weight: 600; letter-spacing: 0.3px;
}
.vertical-grid { background: rgba(0,113,227,0.3); color: #60a5fa; }
.vertical-edu { background: rgba(48,209,88,0.3); color: #86efac; }
.vertical-build { background: rgba(255,159,10,0.3); color: #fbbf24; }

/* ═══════════ CONTACT ═══════════ */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }

.contact-form-wrap, .contact-info-wrap {
    background: var(--white); padding: 36px 32px; border-radius: var(--radius-xl);
    border: 1px solid rgba(0,0,0,0.06);
}

.contact-form-title, .contact-info-title {
    font-size: 22px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 500; color: var(--black);
    margin-bottom: 6px; letter-spacing: -0.1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 16px; border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-md); font-size: 15px; font-family: var(--font);
    color: var(--black); background: var(--bg); transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-grid); box-shadow: 0 0 0 3px rgba(0,113,227,0.1);
}

.form-group input.error,
.form-group textarea.error { border-color: #ef4444; }
.form-error { font-size: 12px; color: #ef4444; margin-top: 4px; display: block; min-height: 16px; }

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

.form-status { margin-top: 16px; font-size: 14px; text-align: center; padding: 12px; border-radius: var(--radius-md); }
.form-status.success { background: rgba(48,209,88,0.1); color: #059669; }
.form-status.error { background: rgba(239,68,68,0.1); color: #ef4444; }

.contact-info-card {
    padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.contact-info-card:last-child { border-bottom: none; }
.contact-info-icon { font-size: 20px; margin-bottom: 6px; }
.contact-info-label { font-size: 12px; font-weight: 600; color: var(--gray-2); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.contact-info-value { font-size: 15px; color: var(--black); font-weight: 500; display: block; }
.contact-info-value:hover { color: var(--accent-grid); }
.contact-info-note { font-size: 13px; color: var(--gray-2); margin-top: 2px; }

.contact-social-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.contact-social-link {
    font-size: 14px; color: var(--accent-grid); font-weight: 500;
}
.contact-social-link:hover { text-decoration: underline; }

/* ═══════════ CTA SECTION ═══════════ */
.cta-section {
    padding: 80px 32px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1d1d1f 100%);
    text-align: center;
}
.cta-title {
    font-size: clamp(28px, 4vw, 38px); font-weight: 700; color: var(--white);
    letter-spacing: -1.5px; margin-bottom: 16px;
}
.cta-subtitle {
    font-size: 17px; color: rgba(255,255,255,0.6); line-height: 1.6;
    max-width: 520px; margin: 0 auto 32px; letter-spacing: -0.2px;
}
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-section .hero-cta.hub { background: var(--white); color: var(--black); }
.cta-section .hero-cta-outline { border-color: rgba(255,255,255,0.25); color: var(--white); }
.cta-section .hero-cta-outline:hover { background: rgba(255,255,255,0.1); }

/* ═══════════ ECOSYSTEM BANNER ═══════════ */
.ecosystem-banner {
    padding: 48px 32px; text-align: center;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.04);
}
.ecosystem-title {
    font-size: 12px; font-weight: 600; color: var(--gray-2);
    letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 20px;
}
.ecosystem-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ecosystem-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-pill);
    border: 1px solid rgba(0,0,0,0.08); font-size: 13px; font-weight: 500;
    color: var(--black); transition: var(--transition);
}
.ecosystem-link:hover { background: var(--gray-4); transform: translateY(-2px); }
.eco-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.eco-dot-sm { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 4px; }

/* ═══════════ FOOTER ═══════════ */
.site-footer {
    padding: 60px 0 36px; background: var(--bg);
    border-top: 1px solid rgba(0,0,0,0.06);
}
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-name { font-weight: 600; font-size: 16px; color: var(--black); }
.footer-tagline { font-size: 14px; color: var(--gray-2); margin-bottom: 16px; }

.footer-social { display: flex; gap: 12px; }
.social-link {
    font-size: 12px; color: var(--gray-2); padding: 6px 14px;
    border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius-pill);
    transition: var(--transition);
}
.social-link:hover { color: var(--black); background: var(--white); }

.footer-heading {
    font-size: 12px; font-weight: 600; color: var(--gray-2);
    text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px;
}

.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { font-size: 14px; color: var(--gray-1); transition: var(--transition); display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--black); }
.footer-location { font-size: 14px; color: var(--gray-2); }

.footer-bottom {
    padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.06); text-align: center;
}
.footer-copy { font-size: 12px; color: var(--gray-3); }

/* ═══════════ SEARCH FORM ═══════════ */
.search-form-inner {
    display: flex; gap: 8px; max-width: 400px; margin: 24px auto 0;
}
.search-input {
    flex: 1; padding: 12px 16px; border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-md); font-size: 15px; font-family: var(--font);
    outline: none; transition: var(--transition);
}
.search-input:focus { border-color: var(--accent-grid); }
.search-submit {
    padding: 12px 24px; background: var(--black); color: var(--white);
    border: none; border-radius: var(--radius-md); font-size: 14px;
    font-weight: 500; font-family: var(--font); cursor: pointer;
    transition: var(--transition);
}
.search-submit:hover { background: #333; }

/* ═══════════ PAGE CONTENT (generic) ═══════════ */
.page-content h2 { font-size: 26px; font-weight: 700; letter-spacing: -1px; margin: 28px 0 14px; }
.page-content p { font-size: 17px; color: var(--gray-1); line-height: 1.75; margin-bottom: 16px; }
.page-content img { border-radius: var(--radius-md); margin: 20px 0; }

/* ═══════════ WIDGET STYLES ═══════════ */
.widget { margin-bottom: 28px; }
.widget-title { font-size: 14px; font-weight: 600; letter-spacing: -0.2px; margin-bottom: 12px; }

/* ═══════════ ANIMATIONS ═══════════ */
.js-ready .fade-up {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
    .ventures-grid { grid-template-columns: 1fr; gap: 16px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .hero { padding: 70px 24px 60px; }
    .page-hero { padding: 60px 24px 40px; }
    .hero-title { letter-spacing: -1.5px; }
    .section { padding: 56px 0; }

    .services-preview-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; }

    .blog-card-h-link { flex-direction: column; }
    .blog-card-h-image { width: 100%; min-height: 200px; }

    .contact-grid { grid-template-columns: 1fr; gap: 24px; }

    .container, .container-narrow { padding: 0 20px; }
    .site-nav { padding: 12px 20px; }

    .nav-links {
        display: none; flex-direction: column; gap: 0;
        position: fixed; top: 63px; left: 0; right: 0; bottom: 0;
        background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px; z-index: 99;
    }
    .nav-links.mobile-open { display: flex; }
    .nav-links a, .nav-links .menu-item a {
        font-size: 18px; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.04);
        display: block;
    }
    .nav-links .lang-switcher { border-left: none; padding-left: 0; margin-left: 0; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.06); }

    .nav-menu-btn { display: block; }

    .stats-grid { gap: 28px; }
    .stat-number { font-size: 28px; }

    .post-nav-grid { grid-template-columns: 1fr; }
    .post-nav-link.next { text-align: left; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-social { margin-bottom: 8px; }

    .timeline { padding-left: 28px; }

    .cta-section { padding: 60px 24px; }
    .cta-actions { flex-direction: column; align-items: center; }

    .author-bio-card { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero { padding: 50px 20px 44px; }
    .site-nav { padding: 10px 16px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .stats-grid { flex-direction: column; gap: 16px; }
    .ecosystem-links { flex-direction: column; align-items: center; }
}

/* ─── PRINT STYLES ─── */
@media print {
    .site-nav, .site-footer, .ecosystem-banner, .cta-section { display: none; }
    .hero { padding: 40px 0; }
    .section { padding: 30px 0; }
    body { color: #000; background: #fff; }
}
