/* ─────────────────────────────────────────
   GLOBAL — mkdev.fr (ported from Astro)
   ───────────────────────────────────────── */

/* ── Layout ── */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 3rem); }
.site-main { flex: 1; }

/* ── Nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a:not(.btn-nav) {
  font-size: .875rem; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color var(--ease);
}
.nav-links a:not(.btn-nav):hover, .nav-links a[data-active] { color: var(--p); }

/* ── Footer ── */
.site-footer {
  background: var(--s-dark); padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; text-decoration: none; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .8rem; color: var(--footer-link, #7C5FC0); text-decoration: none; transition: color var(--ease); }
.footer-links a:hover { color: var(--footer-link-hover, #A78BFA); }
.footer-copy { font-size: .75rem; color: var(--footer-copy, #c1beba); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; padding: .6rem 1.25rem; border-radius: var(--r); font-size: .9rem; font-weight: 500; text-decoration: none; transition: all var(--ease); border: none; cursor: pointer; }
.btn-primary { background: var(--p); color: #fff; }
.btn-primary:hover { background: var(--p-dark); }
.btn-secondary { background: var(--s); color: #fff; }
.btn-secondary:hover { background: var(--s-dark); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--p); color: var(--p); }
.btn-ghost { font-size: .85rem; color: var(--p); background: none; border: none; padding: 0; }
.btn-ghost:hover { text-decoration: underline; }
.btn-nav { font-size: .8rem; padding: .45rem .9rem; background: var(--p); color: #fff; border-radius: var(--r); text-decoration: none; font-weight: 500; }
.btn-nav:hover { background: var(--p-dark); }

/* ── Logo light/dark ── */
.logo-dark { display: none; }
.logo-light { display: block; }
[data-theme="dark"] .site-nav .logo-light { display: none; }
[data-theme="dark"] .site-nav .logo-dark { display: block; }
.site-footer .logo-light { display: none; }
.site-footer .logo-dark { display: block; }

/* ── Theme toggle ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--subtle);
  color: var(--muted); cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.theme-toggle:hover { color: var(--p); border-color: var(--p); }
.icon-sun { display: none; } .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ── Eyebrow ── */
.eyebrow { font-family: var(--fm); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--p); font-weight: 500; }
.accent { color: var(--p); }
.lead { font-size: 1.15rem; color: var(--muted); line-height: 1.7; }

/* ── Tags ── */
.tag { display: inline-block; font-size: .75rem; padding: .2em .6em; border-radius: 6px; font-weight: 500; text-decoration: none; }
.tag-v { background: var(--s-light); color: var(--s); }
.tag-o { background: var(--p-light); color: var(--p-dark); }
.tag-g { background: var(--tag-g-bg, #F0FDF4); color: var(--tag-g-text, #16A34A); }
.tag-mono { font-family: var(--fm); }

/* ── Cards ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rl); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── Availability dot ── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.avail-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #16a34a; animation: pulse 2s infinite; flex-shrink: 0;
}
.avail-badge { display: flex; align-items: center; gap: .625rem; font-size: .875rem; color: #C4B5FD; }

/* ── Hero ── */
.hero { background: var(--bg-v); padding: 6rem 0 5rem; }
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.hero-content h1 { margin-bottom: 1.25rem; }
.hero-lead { max-width: 540px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge {
  display: flex; flex-direction: column; gap: .75rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 1.75rem 2rem; min-width: 180px;
}
.badge-item { display: flex; flex-direction: column; gap: .2rem; }
.badge-num { font-family: var(--fd); font-size: 1.75rem; font-weight: 700; color: var(--p); line-height: 1; }
.badge-lbl { font-size: .75rem; color: var(--muted); font-weight: 500; }
.badge-sep { height: 1px; background: var(--border); }

/* ── Page hero ── */
.page-hero { background: var(--bg-v); padding: 5rem 0 4rem; }

/* ── Terminal ── */
.terminal-band { background: var(--term-band, var(--s-dark)); padding: 2rem 0; }
.terminal {
  background: var(--term-bg); border: 1px solid var(--term-border);
  border-radius: var(--rl); overflow: hidden; max-width: 600px;
  margin: 0 auto; box-shadow: var(--term-shadow);
}
.terminal-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem; background: var(--term-bar);
  border-bottom: 1px solid var(--term-border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot--red { background: #FF5F57; }
.terminal-dot--yellow { background: #FEBC2E; }
.terminal-dot--green { background: #28C840; }
.terminal-title { font-family: var(--fm); font-size: .7rem; color: var(--term-title); margin-left: auto; margin-right: auto; }
.terminal-body { padding: 1.25rem 1.5rem; font-family: var(--fm); font-size: .9rem; line-height: 1.8; color: var(--term-text); }
.terminal-prompt { color: var(--p); font-weight: 700; margin-right: .5rem; }
.terminal-cmd { color: var(--term-cmd); }
.terminal-tech { color: var(--term-tech); font-weight: 700; }
.terminal-cursor {
  display: inline-block; width: 8px; height: 1.1em; background: var(--p);
  margin-left: 2px; vertical-align: baseline; border-radius: 1px;
  animation: blink-cursor .8s step-end infinite; transform: translateY(.15em);
}
@keyframes blink-cursor { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Section headers ── */
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap;
}
.section-header h2 { margin-top: .25rem; }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--subtle); }
.section-dark { background: var(--s-dark); }

/* ── Projects grid ── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.project-card { cursor: pointer; }
.project-card.featured { grid-column: span 2; display: grid; grid-template-columns: 1.3fr 1fr; }
.project-thumb {
  background: var(--bg-v); aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
}
.project-thumb:has(img) { padding: 0; background: none; }
.project-thumb img { object-position: top; }
.featured .project-thumb { aspect-ratio: auto; min-height: 220px; }
.thumb-mock { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.thumb-bar { height: 9px; border-radius: 4px; background: var(--s-light); }
.thumb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.thumb-block { height: 40px; border-radius: 7px; }
.project-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.project-title { font-family: var(--fd); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.project-desc { font-size: .875rem; line-height: 1.6; color: var(--muted); }
.project-stack { display: flex; gap: 5px; flex-wrap: wrap; margin-top: .25rem; }
.project-links { display: flex; gap: .75rem; align-items: center; margin-top: .5rem; flex-wrap: wrap; }
.project-link { font-size: .8rem; font-weight: 500; color: var(--p); text-decoration: none; }
.link-chip {
  font-size: .8rem; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: .3rem .75rem;
  border: 1px solid var(--border); border-radius: 6px;
  transition: border-color var(--ease), color var(--ease);
}
.link-chip:hover { border-color: var(--p); color: var(--p); }

/* ── About section ── */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text p { color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .625rem; }
.stack-chip {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--fm); font-size: .8rem; color: var(--muted);
  padding: .5rem .875rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px;
}
.stack-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--p); flex-shrink: 0; }

/* ── Blog posts ── */
.posts-list { display: flex; flex-direction: column; gap: .75rem; }
.post-row {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r);
  text-decoration: none; color: inherit; cursor: pointer;
  transition: border-color var(--ease), transform var(--ease);
}
.post-row:hover { border-color: var(--p); transform: translateX(3px); }
.post-row-date {
  font-family: var(--fm); font-size: .7rem; color: var(--faint);
  white-space: nowrap; padding-top: 2px; min-width: 60px; line-height: 1.5;
}
.post-row-title { font-family: var(--fd); font-size: .95rem; font-weight: 700; line-height: 1.3; margin-bottom: .3rem; }
.post-row-excerpt { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.post-row-tags { display: flex; gap: 5px; margin-top: .5rem; flex-wrap: wrap; }

/* ── CTA ── */
.cta-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--rxl); padding: 3rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem; flex-wrap: wrap;
}
.cta-text h2 { color: #fff; margin-bottom: .75rem; }
.cta-text p { color: #A78BFA; max-width: 460px; line-height: 1.7; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }

/* ── Prose ── */
.prose { line-height: 1.8; color: var(--text); }
.prose h2 { margin-top: 2rem; margin-bottom: .75rem; }
.prose p { margin-bottom: 1rem; }
.prose a { color: var(--p); text-decoration: underline; }
.prose code { font-family: var(--fm); background: var(--code-bg); padding: .15em .4em; border-radius: 4px; font-size: .9em; }
.prose pre { background: var(--code-bg); border: 1px solid var(--code-border); border-radius: var(--r); padding: 1rem; overflow-x: auto; margin: 1rem 0; }
.prose img { border-radius: var(--rl); margin: 1rem 0; }

/* ── About page ── */
.about-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 5rem; align-items: start; }
.bio-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.bio-text strong { color: var(--text); }
.avail-card {
  background: var(--bg-v); border: 1px solid var(--s-light);
  padding: 1rem 1.25rem; border-radius: var(--r);
  display: flex; align-items: center; gap: 1rem;
}
.bio-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem; text-align: center;
}
.stat-num { font-family: var(--fd); font-size: 2rem; font-weight: 700; color: var(--p); }
.stat-lbl { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.stack-sections { display: flex; flex-direction: column; gap: 2rem; }
.stack-section { display: flex; gap: 2rem; align-items: flex-start; }
.stack-cat { min-width: 180px; font-size: .875rem; font-weight: 600; color: var(--text); }
.stack-items { display: flex; gap: .5rem; flex-wrap: wrap; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem; text-align: center;
}
.value-icon { font-size: 1.5rem; margin-bottom: .75rem; }
.value-card h3 { font-size: .95rem; margin-bottom: .5rem; }
.value-card p { font-size: .875rem; color: var(--muted); line-height: 1.5; }

/* ── Contact page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .65rem .75rem;
  border: 1px solid var(--border); border-radius: var(--r);
  font-family: var(--fb); font-size: 1rem;
  background: var(--surface); color: var(--text);
  transition: border-color var(--ease);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--p);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-badge { flex-direction: row; min-width: auto; }
  .badge-sep { width: 1px; height: auto; }
  .about-inner { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ── Blog layout ── */
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }
.feat-post {
  display: grid; grid-template-columns: 1.2fr 1fr;
  border: 1px solid var(--border); border-radius: var(--rl);
  overflow: hidden; margin-bottom: 2rem; cursor: pointer;
  text-decoration: none; color: inherit; transition: border-color var(--ease);
}
.feat-post:hover { border-color: var(--p); }
.feat-thumb { background: var(--bg-v); min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.feat-thumb-mock { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.tmock-bar { height: 9px; border-radius: 4px; background: var(--s-light); }
.tmock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.tmock-block { height: 52px; border-radius: 8px; }
.feat-body { padding: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.feat-label { font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--p); }
.feat-tags { display: flex; gap: 6px; }
.feat-title { font-family: var(--fd); font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.feat-ex { font-size: .875rem; line-height: 1.65; color: var(--muted); }
.feat-meta { display: flex; gap: .75rem; font-family: var(--fm); font-size: .7rem; color: var(--faint); }
.feat-cta { font-size: .875rem; font-weight: 500; color: var(--p); }

/* ── Sidebar ── */
.nl-card { background: var(--s-dark); border-radius: var(--rl); padding: 1.25rem; margin-bottom: 1rem; }
.nl-title { font-family: var(--fd); font-size: .875rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.nl-sub { font-size: .75rem; color: #A78BFA; line-height: 1.5; }
.sb-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 1.25rem; margin-bottom: 1rem; }
.sb-title { font-family: var(--fd); font-size: .875rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .625rem; border-bottom: 1px solid var(--border); }
.sb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-tag { font-family: var(--fm); font-size: .7rem; font-weight: 500; padding: .25rem .65rem; border-radius: 5px; background: var(--subtle); color: var(--muted); cursor: pointer; transition: background var(--ease), color var(--ease); text-decoration: none; }
.sb-tag:hover, .sb-tag.active { background: var(--s-light); color: var(--s); }
.pop-list { display: flex; flex-direction: column; gap: .75rem; }
.pop-item { display: flex; gap: .75rem; text-decoration: none; color: inherit; }
.pop-item:hover .pop-t { color: var(--p); }
.pop-n { font-family: var(--fm); font-size: .75rem; color: var(--p); font-weight: 700; min-width: 16px; }
.pop-t { font-size: .8rem; color: var(--text); line-height: 1.4; transition: color var(--ease); }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .feat-post { grid-template-columns: 1fr; }
}

/* ── Article detail ── */
.art-hero-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.art-date { font-family: var(--fm); font-size: .75rem; color: var(--faint); }
.art-wrapper { background: var(--bg); padding: 3.5rem 0 5rem; }
.art-layout { display: grid; grid-template-columns: 1fr 240px; gap: 4rem; align-items: start; }
.art-body.prose h2 { font-family: var(--fd); font-size: 1.35rem; margin: 2.5rem 0 .875rem; }
.art-body.prose h3 { font-family: var(--fd); font-size: 1.1rem; margin: 2rem 0 .75rem; }
.art-body.prose p { margin-bottom: 1.25rem; color: var(--muted); line-height: 1.8; }
.art-body.prose pre {
  background: var(--code-bg); border: 1px solid var(--code-border);
  border-radius: var(--rl); margin: 1.5rem 0; overflow-x: auto; position: relative;
}
.art-body.prose pre::before {
  content: ''; display: block; height: 32px;
  background: var(--code-bar); border-bottom: 1px solid var(--code-border);
  border-radius: var(--rl) var(--rl) 0 0;
  background-image: radial-gradient(circle, #FF5F57 5px, transparent 5px),
                    radial-gradient(circle, #FEBC2E 5px, transparent 5px),
                    radial-gradient(circle, #28C840 5px, transparent 5px);
  background-size: 10px 10px; background-position: 16px center, 34px center, 52px center;
  background-repeat: no-repeat;
}
.art-body.prose code {
  font-family: var(--fd); font-size: .85em;
  background: var(--p-light); color: var(--p-dark);
  padding: .15em .45em; border-radius: 5px; font-weight: 500;
}
.art-body.prose pre code {
  display: block; background: none; padding: 1.25rem 1.5rem;
  font-family: var(--fd); font-size: .8rem; font-weight: 400;
  line-height: 1.8; color: var(--code-text);
}
.art-body.prose blockquote {
  border-left: 3px solid var(--p); padding-left: 1.25rem;
  margin: 1.5rem 0; color: var(--muted); font-style: italic;
}
.art-body.prose ul, .art-body.prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.art-body.prose li { margin-bottom: .4rem; color: var(--muted); line-height: 1.7; }
.art-body.prose strong { color: var(--text); font-weight: 600; }
.art-body.prose a { color: var(--p); text-decoration: underline; }
.art-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.art-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.share-row { display: flex; align-items: center; gap: .75rem; }
.share-lbl { font-size: .8rem; color: var(--muted); font-weight: 500; }
.share-btn {
  font-size: .8rem; font-weight: 500; padding: .4rem .9rem;
  border-radius: 7px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted);
  text-decoration: none; transition: border-color var(--ease), color var(--ease);
}
.share-btn:hover { border-color: var(--p); color: var(--p); }
.toc-aside { position: sticky; top: 84px; }
.toc-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem;
}
.toc-title {
  font-family: var(--fd); font-size: .8rem; font-weight: 700;
  margin-bottom: .875rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .art-layout { grid-template-columns: 1fr; }
  .toc-aside { display: none; }
}

/* ── Portfolio page ── */
.exp-banner {
  display: flex; gap: 3rem; padding: 1.5rem 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rl); margin-bottom: 3rem; flex-wrap: wrap;
}
.exp-stat { display: flex; flex-direction: column; gap: .2rem; }
.exp-num { font-family: var(--fd); font-size: 2rem; font-weight: 700; color: var(--p); line-height: 1; }
.exp-lbl { font-size: .8rem; color: var(--muted); font-weight: 500; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  font-family: var(--fm); font-size: .75rem; font-weight: 500;
  padding: .35rem .9rem; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); cursor: pointer; transition: all var(--ease);
}
.filter-btn:hover, .filter-btn.active { background: var(--s); color: #fff; border-color: var(--s); }

/* ── Project detail ── */
.back-link { font-size: .875rem; color: var(--muted); text-decoration: none; transition: color var(--ease); }
.back-link:hover { color: var(--p); }
.project-layout { display: grid; grid-template-columns: 1fr 280px; gap: 4rem; align-items: start; }
.project-section { margin-bottom: 2.5rem; }
.project-section h2 { font-family: var(--fd); font-size: 1.35rem; margin-bottom: .875rem; }
.project-section p { color: var(--muted); line-height: 1.8; }
.project-meta-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  position: sticky; top: 84px;
}
.meta-item { display: flex; flex-direction: column; gap: .3rem; }
.meta-lbl { font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.meta-val { font-size: .9rem; font-weight: 500; color: var(--text); }
.meta-link { font-size: .875rem; font-weight: 500; color: var(--p); text-decoration: none; }
.meta-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .project-layout { grid-template-columns: 1fr; }
}

/* ── Contact page ── */
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.avail-card {
  background: var(--bg-v); border: 1px solid var(--s-light);
  border-radius: var(--rl); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.avail-txt { font-size: .875rem; font-weight: 500; color: var(--s); }
.avail-sub { font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.trust-row { display: flex; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.trust-stat { display: flex; flex-direction: column; gap: .2rem; }
.trust-num { font-family: var(--fd); font-size: 1.75rem; font-weight: 700; color: var(--p); line-height: 1; }
.trust-lbl { font-size: .75rem; color: var(--muted); font-weight: 500; }
.ct-info { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.ct-item { display: flex; align-items: center; gap: .875rem; }
.ct-icon {
  width: 38px; height: 38px; border-radius: 9px; background: var(--s-light);
  display: flex; align-items: center; justify-content: center; font-size: .875rem; flex-shrink: 0;
}
.ct-txt { font-size: .9rem; }
.ct-txt a { text-decoration: none; color: var(--text); }
.ct-txt a:hover { color: var(--p); }
.ct-sub { font-size: .75rem; color: var(--muted); }
.soc-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.soc-btn {
  display: flex; align-items: center; padding: .5rem 1rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: .8rem; font-weight: 500; color: var(--text);
  text-decoration: none; background: var(--surface);
  transition: border-color var(--ease), color var(--ease);
}
.soc-btn:hover { border-color: var(--p); color: var(--p); }
.faq-h { font-family: var(--fd); font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  font-family: var(--fb); font-size: .9rem; font-weight: 500; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-a { font-size: .875rem; color: var(--muted); line-height: 1.65; margin-top: .75rem; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-arr { color: var(--p); font-size: .75rem; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-arr { transform: rotate(180deg); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }
.fg { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.fl { font-size: .8rem; font-weight: 500; color: var(--text); }
.fi, .fta, .fsel {
  width: 100%; background: var(--subtle); border: 1px solid var(--border);
  border-radius: 8px; padding: .7rem 1rem; font-family: var(--fb);
  font-size: .875rem; color: var(--text); outline: none;
  transition: border-color var(--ease);
}
.fi:focus, .fta:focus, .fsel:focus { border-color: var(--p); }
.fta { min-height: 130px; resize: vertical; }
.fhint { font-size: .72rem; color: var(--faint); margin-top: .25rem; }

@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Window frame (browser-style image wrapper) ── */
.window-frame {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rl); overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; background: var(--code-bar, var(--subtle));
  border-bottom: 1px solid var(--border);
}
.window-title {
  font-family: var(--fm); font-size: .65rem; color: var(--faint);
  margin-left: auto; margin-right: auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%;
}
.window-body { background: var(--bg-v); }
.window-body img { width: 100%; height: auto; display: block; }
.window-body .thumb-mock { padding: 1.25rem; }

/* Override project-thumb when using window-frame */
.project-thumb.window-frame {
  aspect-ratio: auto; padding: 0; background: none;
  display: flex; flex-direction: column;
}
.featured .project-thumb.window-frame { min-height: auto; }
