/* Homepage-only styles — enqueued solely on the front page. */

.homepage section { padding-block: var(--space-7); }
.homepage section + section { border-top: 1px solid var(--border); }

/* -------------------------------------------------------------------- */
/* Hero                                                                  */
/* -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: var(--space-8) var(--space-7); border-top: none !important; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
	position: absolute; inset: 0;
	background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 56px 56px; opacity: 0.35;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 40%, transparent 90%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; }
.hero-orb-1 { width: 420px; height: 420px; background: var(--accent); top: -120px; left: -80px; }
.hero-orb-2 { width: 380px; height: 380px; background: var(--accent-2); top: 40px; right: -100px; }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-6); align-items: center; }
.hero-title { font-size: clamp(2.2rem, 1.7rem + 2.6vw, 3.6rem); margin-top: var(--space-3); }
.hero-sub { color: var(--ink-muted); font-size: 1.1rem; max-width: 34rem; margin-top: var(--space-3); }
.hero-ctas { display: flex; gap: var(--space-3); margin-top: var(--space-5); flex-wrap: wrap; }

.terminal-card { background: var(--code-bg); border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-glow); }
.terminal-chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #f87171; } .dot-amber { background: #fbbf24; } .dot-green { background: #34d399; }
.terminal-title { margin-left: var(--space-2); font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); }
.terminal-body { margin: 0; padding: var(--space-4); font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.75; overflow-x: auto; color: var(--code-ink); }
.terminal-body code { background: none; padding: 0; border: none; font-family: inherit; }
.tok-kw { color: var(--accent-2); } .tok-var { color: var(--code-ink); } .tok-fn { color: var(--accent); } .tok-str { color: #f5b970; } .tok-prop { color: #7dd3fc; }
.hero-visual { position: relative; }
.hero-visual::after { content: ''; position: absolute; inset: -20px; background: var(--gradient-brand); opacity: 0.08; filter: blur(40px); z-index: -1; border-radius: var(--radius-lg); }

@media (max-width: 980px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-visual { order: -1; max-width: 480px; margin-inline: auto; width: 100%; }
}

/* -------------------------------------------------------------------- */
/* About                                                                 */
/* -------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-6); align-items: center; }
.identity-mark { width: 100%; max-width: 280px; margin-inline: auto; display: block; }
.about-text p { color: var(--ink-muted); }
.about-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }
.badge .icon-sm { width: 14px; height: 14px; color: var(--accent); }
.link-more { font-family: var(--font-display); font-weight: 600; color: var(--accent); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; text-align: center; } .about-badges { justify-content: center; } }

/* -------------------------------------------------------------------- */
/* Tech stack                                                            */
/* -------------------------------------------------------------------- */
.tech-categories { display: flex; flex-direction: column; gap: var(--space-6); }
.tech-category-title { font-size: 1rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin-bottom: var(--space-3); }
.tech-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.tech-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-4); text-align: center; transition: border-color 0.2s ease, transform 0.2s ease; }
.tech-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tech-card-icon { display: grid; place-items: center; margin-bottom: var(--space-2); }
.tech-card-icon .icon-md { width: 28px; height: 28px; color: var(--accent); margin-inline: auto; }
.tech-card-name { display: block; font-weight: 600; font-family: var(--font-display); }
.tech-card-desc { display: block; font-size: 0.82rem; color: var(--ink-faint); margin-top: 4px; }

/* -------------------------------------------------------------------- */
/* Concept spotlight                                                     */
/* -------------------------------------------------------------------- */
.spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
.spotlight-explanation { color: var(--ink-muted); }
.spotlight-takeaway { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--bg-elevated); border-left: 3px solid var(--accent-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.takeaway-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-2); }
.spotlight-takeaway p { margin: 4px 0 0; }
@media (max-width: 860px) { .spotlight-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- */
/* Teaching                                                              */
/* -------------------------------------------------------------------- */
.teaching-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.teaching-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); transition: border-color 0.2s ease, transform 0.2s ease; }
.teaching-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.teaching-card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-sm); background: rgba(45,212,191,0.1); margin-bottom: var(--space-3); }
.teaching-card-icon .icon-md { width: 24px; height: 24px; color: var(--accent); }
.teaching-card-title { font-size: 1.1rem; }
.teaching-card-desc { color: var(--ink-muted); font-size: 0.94rem; }
@media (max-width: 980px) { .teaching-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .teaching-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- */
/* Learning path                                                         */
/* -------------------------------------------------------------------- */
.path-list { position: relative; display: flex; flex-direction: column; gap: var(--space-5); max-width: 46rem; margin-inline: auto; }
.path-list::before { content: ''; position: absolute; left: 23px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: 0.35; }
.path-stage { position: relative; display: flex; gap: var(--space-4); align-items: flex-start; padding-left: 0; }
.path-stage-num {
	position: relative; z-index: 1; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--bg-elevated);
	border: 1px solid var(--border-strong); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; color: var(--accent);
}
.path-stage-title { font-size: 1.1rem; margin-bottom: 4px; }
.path-stage-desc { color: var(--ink-muted); font-size: 0.94rem; }

/* -------------------------------------------------------------------- */
/* Projects                                                               */
/* -------------------------------------------------------------------- */
.projects-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--space-3); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.project-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, border-color 0.2s ease; }
.project-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.project-card.is-featured { box-shadow: var(--shadow-glow); border-color: rgba(45,212,191,0.3); }
.project-card-thumb { aspect-ratio: 16/10; background: var(--code-bg); overflow: hidden; }
.project-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card-thumb-generic { display: grid; place-items: center; }
.project-card-thumb-generic .icon-lg { width: 40px; height: 40px; color: var(--ink-faint); }
.project-card-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.project-card-title { font-size: 1.15rem; margin: 0; }
.project-card-title a { color: var(--ink); }
.project-card-title a:hover { color: var(--accent); text-decoration: none; }
.project-card-excerpt { color: var(--ink-muted); font-size: 0.92rem; margin: 0; }
.tech-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-2) 0; }
.tech-pills-center { justify-content: center; }
.tech-pills li { font-family: var(--font-mono); font-size: 0.72rem; background: var(--code-bg); color: var(--accent-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.project-card-links { display: flex; gap: var(--space-3); margin-top: auto; padding-top: var(--space-2); }
.project-links-center { justify-content: center; margin-top: var(--space-4); }
.project-link { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.back-link { text-align: center; margin-top: var(--space-6); font-family: var(--font-mono); }

.tech-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-5); }
.tech-filter-btn { font-family: var(--font-mono); font-size: 0.82rem; background: transparent; border: 1px solid var(--border-strong); color: var(--ink-muted); border-radius: 999px; padding: 7px 16px; transition: all 0.15s ease; }
.tech-filter-btn:hover { border-color: var(--accent); color: var(--ink); }
.tech-filter-btn.is-active { background: var(--gradient-brand); color: var(--accent-ink); border-color: transparent; }
.project-card[hidden] { display: none; }

@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- */
/* Philosophy (commit-log motif)                                         */
/* -------------------------------------------------------------------- */
.philosophy-log { max-width: 56rem; margin-inline: auto; }
.philosophy-entries { display: flex; flex-direction: column; gap: var(--space-4); }
.philosophy-entry { display: flex; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px dashed var(--border); }
.philosophy-entry:last-child { border-bottom: none; padding-bottom: 0; }
.commit-hash { flex-shrink: 0; color: var(--accent-2); }
.commit-subject { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin: 0 0 4px; color: var(--ink); }
.commit-body { color: var(--ink-muted); font-family: var(--font-body); font-size: 0.9rem; }
.commit-body p { margin: 0; }

/* -------------------------------------------------------------------- */
/* Closing CTA                                                           */
/* -------------------------------------------------------------------- */
.closing-cta-inner { text-align: center; max-width: 40rem; margin-inline: auto; }
.closing-cta-inner .btn { margin-top: var(--space-3); }

/* -------------------------------------------------------------------- */
/* Empty state note                                                      */
/* -------------------------------------------------------------------- */
.empty-note { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.9rem; text-align: center; padding: var(--space-5); border: 1px dashed var(--border); border-radius: var(--radius-sm); }
