/* ==========================================================================
   VS Tech Lab — Public website styles (no build step, plain CSS)
   ========================================================================== */
:root {
    --navy-950: #020617;
    --navy-900: #0a0f1d;
    --navy-850: #0d1426;
    --navy-800: #111a30;
    --navy-700: #1e293b;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --ink: #0f172a;
    --accent: #0ea5e9;
    --accent-600: #0284c7;
    --accent-2: #22d3ee;
    --accent-soft: #e0f2fe;
    --success: #10b981;
    --danger: #ef4444;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --container: 1240px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 13px; height: 13px; }
.icon-lg { width: 26px; height: 26px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent-600); font-weight: 700; margin-bottom: 12px;
}
.dark .eyebrow, .eyebrow.on-dark { color: var(--accent-2); }
.pill {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 12.5px; color: var(--accent-2);
    border: 1px solid rgba(148, 163, 184, .2); background: rgba(15, 23, 42, .6);
    padding: 6px 14px; border-radius: 999px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); }
.gradient-text { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--slate-600); }
.mono { font-family: var(--mono); }
.text-center { text-align: center; }
.lead { font-size: 1.125rem; color: var(--slate-600); max-width: 760px; }
.dark .lead { color: var(--slate-300); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
    border: 1px solid transparent; transition: .2s ease; white-space: nowrap; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(14, 165, 233, .6); }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(148, 163, 184, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--slate-200); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-600); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-600); font-size: 14.5px; }
.link-arrow:hover { gap: 10px; }
.dark .link-arrow { color: var(--accent-2); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: var(--slate-300); font-size: 12.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .hubs { color: var(--slate-400); }
@media (max-width: 1100px) { .topbar .hubs { display: none; } }
@media (max-width: 640px) { .topbar-right, .topbar .email-item { display: none; } .topbar .container { justify-content: center; } }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--slate-200); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.brand-name { font-weight: 800; font-size: 19px; line-height: 1.1; letter-spacing: -.02em; }
.brand-sub { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--slate-500); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--slate-700); background: none; border: 0; }
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link.active { color: var(--accent-600); }
.nav-link .icon { width: 14px; height: 14px; transition: transform .2s; }
.nav-item:hover > .nav-link .icon { transform: rotate(180deg); }
.dropdown {
    position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
    background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; box-shadow: var(--shadow);
    padding: 14px; min-width: 300px; opacity: 0; visibility: hidden; transition: .18s ease;
}
.dropdown.wide { min-width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; align-items: flex-start; }
.dropdown a:hover { background: var(--slate-100); }
.dropdown .dd-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-600); display: grid; place-items: center; flex: none; }
.dropdown .dd-title { font-weight: 700; font-size: 14px; display: block; line-height: 1.3; }
.dropdown .dd-desc { font-size: 12.5px; color: var(--slate-500); line-height: 1.4; display: block; }
.dropdown .dd-all { grid-column: 1 / -1; border-top: 1px solid var(--slate-200); margin-top: 6px; padding-top: 12px; font-weight: 700; color: var(--accent-600); font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--slate-200); background: #fff; align-items: center; justify-content: center; }

@media (max-width: 1200px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
    .header-actions .btn { display: none; }
    .brand-name { font-size: 17px; }
}

/* Mobile drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-nav.open { visibility: visible; }
.mobile-nav .backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .55); opacity: 0; transition: .25s; }
.mobile-nav.open .backdrop { opacity: 1; }
.mobile-nav .panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff;
    transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column;
}
.mobile-nav.open .panel { transform: none; }
.mobile-nav .panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--slate-200); }
.mobile-nav .panel-body { overflow-y: auto; padding: 8px 16px 24px; flex: 1; }
.mobile-nav details { border-bottom: 1px solid var(--slate-100); }
.mobile-nav summary, .mobile-nav .m-link { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-weight: 700; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] summary .icon { transform: rotate(180deg); }
.mobile-nav .m-sub a { display: block; padding: 9px 12px; font-size: 14.5px; color: var(--slate-600); border-radius: 8px; }
.mobile-nav .m-sub a:hover { background: var(--slate-100); color: var(--ink); }
.mobile-nav .m-sub { padding-bottom: 10px; }
.mobile-nav .m-link { border-bottom: 1px solid var(--slate-100); }
.mobile-nav .panel-foot { padding: 16px; border-top: 1px solid var(--slate-200); display: grid; gap: 10px; }
body.nav-open { overflow: hidden; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: #fff; border-bottom: 1px solid var(--slate-200); font-size: 13px; color: var(--slate-500); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--slate-300); }
.breadcrumbs a:hover { color: var(--accent-600); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Dark surfaces ---------- */
.dark { background: var(--navy-900); color: #fff; }
.dark .muted, .dark p { color: var(--slate-300); }
.grid-bg { position: relative; isolation: isolate; overflow: hidden; }
.grid-bg::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 30% 30%, #000 30%, transparent 75%);
}
.grid-bg::after {
    content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, .22), transparent 65%);
}

/* ---------- Home hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); margin: 22px 0 22px; letter-spacing: -.035em; }
.hero p.lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px 26px; padding-top: 24px; border-top: 1px solid rgba(148, 163, 184, .15); font-family: var(--mono); font-size: 12.5px; color: var(--slate-300); }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .icon { color: var(--success); width: 16px; height: 16px; }
.framework-card { background: linear-gradient(180deg, rgba(17, 26, 48, .95), rgba(10, 15, 29, .95)); border: 1px solid rgba(148, 163, 184, .16); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 30px 80px -30px rgba(14, 165, 233, .35); }
.framework-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(148, 163, 184, .14); margin-bottom: 16px; }
.framework-head img { width: 42px; height: 42px; border-radius: 10px; }
.framework-head strong { display: block; font-size: 15px; }
.framework-head small { font-family: var(--mono); color: var(--accent-2); font-size: 11.5px; }
.framework-head .tag { margin-left: auto; font-family: var(--mono); font-size: 11px; background: rgba(148, 163, 184, .1); padding: 4px 8px; border-radius: 6px; color: var(--slate-300); }
.framework-item { display: flex; gap: 14px; padding: 16px; border: 1px solid rgba(148, 163, 184, .12); border-radius: 12px; background: rgba(2, 6, 23, .35); margin-bottom: 12px; }
.framework-item .ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(14, 165, 233, .12); color: var(--accent-2); flex: none; }
.framework-item h3 { font-size: 14.5px; margin: 0 0 4px; }
.framework-item p { font-size: 13px; margin: 0; color: var(--slate-400); line-height: 1.5; }
.framework-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; font-size: 12.5px; color: var(--slate-400); }

@media (max-width: 960px) {
    .hero { padding: 48px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding: 64px 0 72px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 900px; margin: 18px 0 18px; }
.page-hero .lead { color: var(--slate-300); }
.page-hero .hero-actions { margin-bottom: 0; }
.page-hero .meta-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--slate-400); }
.page-hero .meta-row span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .page-hero { padding: 44px 0 52px; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section.white { background: #fff; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
@media (max-width: 640px) { .section { padding: 60px 0; } .section-head { margin-bottom: 32px; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .split-2, .layout-sidebar { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }
@media (min-width: 480px) and (max-width: 640px) { .grid-5, .grid-4.keep-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: .2s ease; position: relative; min-width: 0; }
a.card:hover, .card.hover:hover { border-color: rgba(14, 165, 233, .5); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--slate-600); font-size: 14.5px; }
.card .num { font-family: var(--mono); color: var(--slate-400); font-size: 13px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; gap: 12px; }
.card .cat { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 6px; display: block; }
.card-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--slate-100); }
.card-flex { display: flex; flex-direction: column; }
.card-flex .card-foot { margin-top: auto; }
.card-dark { background: var(--navy-850); border: 1px solid rgba(148, 163, 184, .14); border-radius: var(--radius); padding: 26px; color: #fff; min-width: 0; }
.card-dark p { color: var(--slate-400); font-size: 14.5px; }
.card-dark h3 { font-size: 1.1rem; }
a.card-dark:hover { border-color: rgba(34, 211, 238, .45); }
.card-img { margin: -26px -26px 20px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16/9; background: var(--slate-100); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.icon-box { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-600); flex: none; }
.dark .icon-box, .card-dark .icon-box { background: rgba(14, 165, 233, .12); color: var(--accent-2); }

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--slate-700); }
.check-list li .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 3px; }
.dark .check-list li, .card-dark .check-list li { color: var(--slate-300); }
.bullet-list { list-style: none; display: grid; gap: 10px; }
.bullet-list li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--slate-700); }
.bullet-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.bullet-list.accent li::before { background: var(--accent); }
.solved { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--slate-50); border: 1px dashed var(--slate-300); font-size: 13.5px; }
.solved strong { color: var(--accent-600); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; background: var(--slate-100); color: var(--slate-700); border: 1px solid var(--slate-200); font-weight: 600; }
.chip.accent { background: var(--accent-soft); color: var(--accent-600); border-color: #bae6fd; }
.dark .chip, .card-dark .chip { background: rgba(148, 163, 184, .1); border-color: rgba(148, 163, 184, .2); color: var(--slate-300); }

.stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.9rem; letter-spacing: -.03em; color: var(--accent-600); line-height: 1.1; }
.dark .stat strong, .card-dark .stat strong { color: var(--accent-2); }
.stat span { font-size: 13px; color: var(--slate-500); }

/* ---------- Values ---------- */
.value-card { display: flex; flex-direction: column; }
.value-card .tagline { font-style: italic; color: var(--slate-700); font-weight: 600; font-size: 15px; border-left: 3px solid var(--accent); padding-left: 12px; margin: 12px 0 14px; }
.value-card .deliver { margin-top: auto; background: var(--slate-50); border-radius: 10px; padding: 14px; font-size: 13.5px; color: var(--slate-600); }
.value-card .deliver b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--accent-600); margin-bottom: 4px; }

/* ---------- Process ---------- */
.process { counter-reset: step; }
.process-step { position: relative; }
.process-step .step-num { font-family: var(--mono); font-size: 2.2rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--accent-2); line-height: 1; margin-bottom: 14px; display: block; }
.process-step h3 { font-size: 1.1rem; }

/* ---------- AI pipeline ---------- */
.pipeline { background: var(--navy-950); border: 1px solid rgba(148, 163, 184, .16); border-radius: var(--radius-lg); padding: 24px; font-family: var(--mono); }
.pipeline-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #fff; margin-bottom: 16px; }
.pipeline-head .status { color: var(--success); font-size: 11.5px; display: inline-flex; align-items: center; gap: 6px; }
.pipeline-head .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.pipeline-step { border-left: 2px solid rgba(34, 211, 238, .4); padding: 4px 0 18px 18px; position: relative; }
.pipeline-step::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); }
.pipeline-step b { display: block; font-size: 12px; color: var(--accent-2); letter-spacing: .05em; }
.pipeline-step p { font-family: var(--font); font-size: 13.5px; color: var(--slate-400); margin: 4px 0 0; }

/* ---------- Case studies ---------- */
.case-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.case-card .stats { margin: 18px 0 4px; }

/* ---------- Insights ---------- */
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--slate-500); margin-bottom: 10px; }
.post-meta .cat { color: var(--accent-600); font-weight: 700; margin: 0; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--slate-200); background: #fff; font-weight: 600; font-size: 14px; }
.filter-tabs a.active, .filter-tabs a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.prose { font-size: 17px; line-height: 1.8; color: var(--slate-700); }
.prose h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; color: var(--ink); scroll-margin-top: 100px; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--accent); background: var(--slate-100); border-radius: 0 12px 12px 0; font-style: italic; }
.prose a { color: var(--accent-600); text-decoration: underline; }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--slate-200); padding: 10px; text-align: left; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); }
.toc ol { padding-left: 18px; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.toc a:hover { color: var(--accent-600); }
.featured-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; aspect-ratio: 16/8; background: var(--slate-100); }
.featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Accordion (FAQ) ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; }
.faq summary { list-style: none; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--slate-400); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 18px; color: var(--slate-600); font-size: 15px; }

/* ---------- Offices ---------- */
.office-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.office-tab { text-align: left; background: rgba(148, 163, 184, .06); border: 1px solid rgba(148, 163, 184, .16); border-radius: 12px; padding: 14px; color: #fff; transition: .2s; }
.office-tab small { display: block; color: var(--slate-400); font-size: 12px; font-family: var(--mono); }
.office-tab .hq { font-family: var(--mono); font-size: 10px; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.office-tab.active, .office-tab:hover { border-color: var(--accent-2); background: rgba(14, 165, 233, .12); }
.office-panel { display: none; }
.office-panel.active { display: grid; }
.office-detail { grid-template-columns: 1.2fr 1fr; gap: 26px; background: var(--navy-850); border: 1px solid rgba(148, 163, 184, .14); border-radius: var(--radius-lg); padding: 28px; }
.office-detail dl { margin: 0; display: grid; gap: 16px; }
.office-detail dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--accent-2); }
.office-detail dd { margin: 4px 0 0; color: var(--slate-200); }
.map-frame { border-radius: 14px; overflow: hidden; min-height: 260px; background: var(--navy-800); }
.map-frame iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }
@media (max-width: 960px) { .office-tabs { grid-template-columns: repeat(2, 1fr); } .office-detail { grid-template-columns: 1fr; padding: 20px; } }

/* ---------- CTA band ---------- */
.cta-band { padding: 80px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); max-width: 860px; margin: 0 auto 16px; }
.cta-band p { max-width: 680px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-600); margin-bottom: 6px; font-weight: 700; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--slate-300); background: var(--slate-50);
    font: inherit; font-size: 15px; color: var(--ink); transition: .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(14, 165, 233, .15); }
.field .error { color: var(--danger); font-size: 13px; margin-top: 4px; display: block; }
.consent { display: flex; gap: 10px; font-size: 13.5px; color: var(--slate-600); align-items: flex-start; }
.consent input { margin-top: 4px; width: 16px; height: 16px; flex: none; }
.radio-row { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); text-transform: none; font-size: 14.5px; letter-spacing: 0; color: var(--ink); font-weight: 500; }
.hp-field { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14.5px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px; } }

.contact-channel { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--slate-100); }
.contact-channel:last-child { border-bottom: 0; }
.contact-channel small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--slate-500); }
.contact-channel strong { font-size: 17px; }
.office-row { padding: 14px 0; border-bottom: 1px solid var(--slate-100); font-size: 14px; }
.office-row:last-child { border: 0; }
.office-row .links { display: flex; gap: 16px; margin-top: 6px; }

/* ---------- Sidebar ---------- */
.sidebar-box { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.sidebar-box h3 { font-size: 1rem; margin-bottom: 14px; }
.sidebar-box.dark-box { background: var(--navy-900); color: #fff; border-color: transparent; }
.sidebar-box.dark-box p { color: var(--slate-300); font-size: 14.5px; }
.side-links { list-style: none; display: grid; gap: 4px; }
.side-links a { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--slate-700); }
.side-links a:hover, .side-links a.active { background: var(--slate-100); color: var(--accent-600); }
@media (min-width: 961px) { .sticky-side { position: sticky; top: calc(var(--header-h) + 20px); } }

.sub-nav { background: #fff; border-bottom: 1px solid var(--slate-200); overflow-x: auto; scrollbar-width: none; }
.sub-nav::-webkit-scrollbar { display: none; }
.sub-nav ul { list-style: none; display: flex; gap: 4px; white-space: nowrap; }
.sub-nav a { display: block; padding: 14px 14px; font-weight: 600; font-size: 14.5px; color: var(--slate-600); border-bottom: 2px solid transparent; }
.sub-nav a.active, .sub-nav a:hover { color: var(--accent-600); border-color: var(--accent); }

.testimonial { background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: 34px; }
.testimonial blockquote { margin: 0 0 18px; font-size: 1.2rem; line-height: 1.6; font-weight: 600; }
.testimonial cite { font-style: normal; color: var(--slate-400); font-size: 14px; }
.testimonial cite b { color: #fff; display: block; }

.notice { font-size: 13px; color: var(--slate-500); background: var(--slate-100); border-radius: 10px; padding: 10px 14px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 40px; list-style: none; }
.pagination a, .pagination span { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--slate-200); background: #fff; font-weight: 600; font-size: 14px; }
.pagination .active span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled span { color: var(--slate-300); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--slate-400); padding: 72px 0 0; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; padding-bottom: 48px; }
.footer-brand p { margin: 16px 0; max-width: 300px; }
.footer-brand .brand-name { color: #fff; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact a { display: inline-flex; gap: 8px; align-items: center; color: var(--slate-300); }
.footer-col h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: #fff; margin-bottom: 16px; font-weight: 700; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a:hover, .footer-contact a:hover { color: var(--accent-2); }
.footer-hubs { border-top: 1px solid rgba(148, 163, 184, .12); padding: 28px 0; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer-hubs b { color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.footer-hubs a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, .12); padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-bottom a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(148, 163, 184, .1); color: var(--slate-300); }
.socials a:hover { background: var(--accent); color: #fff; }
@media (max-width: 1100px) { .footer-top { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } .site-footer { padding-top: 52px; } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; border: 0; opacity: 0; visibility: hidden; transition: .25s; z-index: 90; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; visibility: visible; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Misc ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 12px; } .wrap { flex-wrap: wrap; }
.divider { height: 1px; background: var(--slate-200); margin: 36px 0; border: 0; }
.empty { text-align: center; padding: 60px 20px; color: var(--slate-500); }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 16px; }
.error-page .code { font-family: var(--mono); font-size: 5rem; font-weight: 700; line-height: 1; }
.sitemap-list { columns: 3 240px; column-gap: 40px; }
.sitemap-list section { break-inside: avoid; margin-bottom: 28px; }
.sitemap-list h2 { font-size: 1.1rem; }
.sitemap-list ul { list-style: none; display: grid; gap: 6px; }
.sitemap-list a:hover { color: var(--accent-600); }

/* Contact page: form first and wider on desktop, form first on mobile */
.contact-layout > .form-card { order: -1; }
@media (min-width: 961px) { .layout-sidebar.contact-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

/* Keep desktop nav on one line on smaller laptops */
.nav-link { white-space: nowrap; }
@media (min-width: 1201px) and (max-width: 1340px) {
    .site-header .container { gap: 12px; }
    .nav-link { padding: 10px 8px; font-size: 14.5px; }
    .brand-sub { display: none; }
}

/* ---------- Blog ---------- */
.blog-card .card-img { display: block; }
.blog-card-ph { display: grid; place-items: center; height: 100%; color: var(--slate-300); background: linear-gradient(135deg, var(--slate-100), var(--accent-soft)); }
.blog-card .post-meta a.cat:hover { text-decoration: underline; }
.side-title { font-size: 1rem; margin-bottom: 14px; }
.blog-search { display: flex; gap: 8px; }
.blog-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--slate-300); border-radius: 10px; font: inherit; font-size: 14.5px; }
.side-links a .chip { margin-left: auto; }
.recent-posts { list-style: none; display: grid; gap: 14px; }
.recent-posts a { display: flex; gap: 12px; align-items: center; }
.recent-posts img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.recent-posts strong { display: block; font-size: 14px; line-height: 1.35; }
.recent-posts a:hover strong { color: var(--accent-600); }
.recent-posts small { color: var(--slate-500); font-size: 12px; }
a.chip:hover { border-color: var(--accent); color: var(--accent-600); }
.toc-inline { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 14px; padding: 18px 22px; margin-bottom: 32px; }
.toc-inline ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.toc-inline a:hover { color: var(--accent-600); }
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--slate-200); }
.share-row a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--slate-200); color: var(--slate-600); }
.share-row a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav .card { padding: 18px; }
.post-nav small { display: block; color: var(--slate-500); font-size: 12.5px; }
.post-nav strong { font-size: 15px; line-height: 1.4; }
.category-intro { font-size: 16px; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: 14px; color: var(--slate-500); text-align: center; margin-top: 6px; }
.prose iframe { max-width: 100%; border-radius: 12px; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 .8em; }
.rich ul, .rich ol { padding-left: 1.2em; margin: 0 0 .8em; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }
