@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===================== Theme palettes (from templates.ts) ===================== */
:root {
  --primary: #1A1A1E;
  --primary-dark: #0F0F12;
  --primary-light: #EAE8E3;
  --accent: #C6A664;
  --accent-light: #F5EED8;
  --bg: #F5F3EF;
  --bg-alt: #ECE9E3;
  --surface: #FFFFFF;
  --soft: #E9E6E0;
  --border: #D8D4CC;
  --ink: #1A1A1E;
  --ink-soft: #4A4A4E;
  --ink-faint: #8A8886;
  --on-primary: #FFFFFF;
  --on-accent: #1A1A1E;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #0F0F12 0%, #1E1E22 46%, #2C2C30 100%);
  --hero-overlay: linear-gradient(180deg, rgba(15,15,18,0.12) 0%, rgba(15,15,18,0.58) 100%);
  --hero-text: #F5F3EF;
  --shadow-sm: 0 1px 3px rgba(26,26,30,0.08);
  --shadow-md: 0 4px 20px rgba(26,26,30,0.10);
  --shadow-lg: 0 14px 40px rgba(26,26,30,0.14);
}
html[data-theme="material"] {
  --primary: #8B4A2B;
  --primary-dark: #6F3B22;
  --primary-light: #F2E6DC;
  --accent: #D9A441;
  --accent-light: #FDF0D0;
  --bg: #FDF8F0;
  --bg-alt: #F5EDE2;
  --surface: #FFFFFF;
  --soft: #EFE6D8;
  --border: #E0D5C2;
  --ink: #2D1B12;
  --ink-soft: #6B4E3A;
  --ink-faint: #9A8576;
  --on-primary: #FFFFFF;
  --on-accent: #2D1B12;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #2D1B12 0%, #6B3A24 48%, #8B4A2B 100%);
  --hero-overlay: linear-gradient(180deg, rgba(45,27,18,0.18) 0%, rgba(45,27,18,0.55) 100%);
  --hero-text: #FDF8F0;
  --shadow-sm: 0 1px 3px rgba(45,27,18,0.08);
  --shadow-md: 0 4px 20px rgba(45,27,18,0.10);
  --shadow-lg: 0 12px 36px rgba(45,27,18,0.15);
}
html[data-theme="monolith"] {
  --primary: #E6E8F0;
  --primary-dark: #FFFFFF;
  --primary-light: #1E2235;
  --accent: #22D3EE;
  --accent-light: #0E3440;
  --bg: #0B0E1A;
  --bg-alt: #151927;
  --surface: #1A1E2E;
  --soft: #232840;
  --border: #2A3048;
  --ink: #E6E8F0;
  --ink-soft: #A0A8C0;
  --ink-faint: #6B748E;
  --on-primary: #0B0E1A;
  --on-accent: #0B0E1A;
  --font-head: 'Space Grotesk', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #05070F 0%, #0B0E1A 44%, #1A2A44 100%);
  --hero-overlay: linear-gradient(180deg, rgba(5,7,15,0.22) 0%, rgba(5,7,15,0.62) 100%);
  --hero-text: #E6E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.32);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.42);
}

/* ===================== Layout & components (from BASE_CSS) ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 38px; width: auto; border-radius: 6px; object-fit: contain; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; }
.brand-name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.brand-sub { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-link { color: var(--ink-soft); font-weight: 600; font-size: 0.86rem; padding: 8px 14px; border-radius: var(--radius-pill); transition: color .15s, background .15s; }
.nav-link:hover { text-decoration: none; background: var(--soft); color: var(--primary); }
.nav-link.active { color: var(--primary); background: var(--soft); }
.nav-cta { background: var(--primary); color: var(--on-primary) !important; border-radius: var(--radius-pill); padding: 10px 22px; font-weight: 800; letter-spacing: 0.01em; transition: background .15s, transform .15s; }
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px 8px; border-radius: 10px; }
.nav-toggle:hover { background: var(--soft); }
.nav-toggle span { display: block; width: 24px; height: 2.5px; border-radius: 999px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.hero { position: relative; padding: 88px 24px 84px; overflow: hidden; background: var(--hero-gradient); background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: 0.06; background-image: linear-gradient(var(--hero-text) 1px, transparent 1px), linear-gradient(90deg, var(--hero-text) 1px, transparent 1px); background-size: 48px 48px; mix-blend-mode: overlay; }
.hero-draft { position: absolute; inset: 0; opacity: 0.07; background: repeating-linear-gradient(90deg, transparent 0 46px, var(--hero-text) 46px 47px), repeating-linear-gradient(0deg, transparent 0 46px, var(--hero-text) 46px 47px); }
.hero-content { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; text-align: center; color: var(--hero-text); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(6px); color: var(--hero-text); font-size: 0.70rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.3rem, 6vw, 3.85rem); line-height: 0.96; margin-bottom: 16px; font-weight: 600; letter-spacing: -0.04em; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero h1 .thin { font-weight: 300; letter-spacing: -0.03em; }
.hero .tagline { font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; opacity: 0.96; margin-bottom: 10px; letter-spacing: 0.01em; }
.hero .desc { font-size: 1.02rem; opacity: 0.82; margin-bottom: 26px; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-cta a { padding: 13px 28px; border-radius: var(--radius-pill); font-weight: 800; font-size: 0.92rem; transition: transform .15s, filter .15s, background .15s; }
.hero-cta a:hover { text-decoration: none; transform: translateY(-2px); }
.hero-cta .primary { background: var(--accent); color: var(--on-accent) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.hero-cta .primary:hover { filter: brightness(1.06); }
.hero-cta .ghost { border: 1.5px solid rgba(255,255,255,0.72); color: #fff !important; backdrop-filter: blur(4px); }
.hero-cta .ghost:hover { background: rgba(255,255,255,0.11); }

.notice-bar { background: var(--accent); color: var(--on-accent); padding: 0; overflow: hidden; border-bottom: 1px solid color-mix(in srgb, var(--accent) 70%, #000); }
.notice-bar-inner { display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.notice-label { flex-shrink: 0; font-family: var(--font-body); font-weight: 800; font-size: 0.70rem; text-transform: uppercase; letter-spacing: 0.12em; padding: 9px 14px 9px 0; border-right: 1px solid rgba(0,0,0,0.14); margin-right: 14px; }
.notice-track { overflow: hidden; flex: 1; position: relative; }
.notice-items { display: flex; gap: 28px; white-space: nowrap; animation: marquee 30s linear infinite; }
.notice-items a { color: var(--on-accent); font-size: 0.85rem; font-weight: 700; }
.notice-items a:hover { text-decoration: underline; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.meta-strip { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.meta-strip .container { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: center; padding: 22px 24px; }
.meta-item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.84rem; font-weight: 600; }
.meta-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.meta-item strong { color: var(--ink); font-weight: 800; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: left; max-width: 720px; margin: 0 0 36px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.70rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--primary); margin-bottom: 10px; }
.section-head .eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--primary); display: inline-block; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.55rem); margin-bottom: 10px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; }
.section-head .rule { width: 52px; height: 3px; background: var(--accent); border-radius: 999px; margin-top: 14px; }
.section-head.center .rule { margin-left: auto; margin-right: auto; }

.card-grid { display: grid; gap: 20px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; position: relative; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 22%, var(--border)); }
.card img { width: 100%; height: 240px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { font-family: var(--font-head); font-size: 1.22rem; margin-bottom: 6px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.card-body p { font-size: 0.90rem; color: var(--ink-soft); line-height: 1.6; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.66rem; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--soft); color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--border); }
.tag.solid { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.tag.featured { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tag.mono { font-family: JetBrains Mono, monospace; letter-spacing: 0.04em; }

.split { display: grid; gap: 28px; align-items: start; }
.split-21 { grid-template-columns: 1.5fr 0.8fr; }
.split-14 { grid-template-columns: 1.4fr 0.8fr; }
.split-09 { grid-template-columns: 0.9fr 1.4fr; }
.split-11 { grid-template-columns: 1fr 1fr; }

.project-card { position: relative; }
.project-card .img-wrap { position: relative; overflow: hidden; }
.project-card img { height: 280px; transition: transform .3s; }
.project-card:hover .img-wrap img { transform: scale(1.04); }
.project-card .img-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.58) 100%); opacity: 0.9; }
.project-card .overlay-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px; z-index: 1; color: #fff; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.project-card .overlay-meta .tag { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); }
.project-card .facts { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; font-size: 0.82rem; color: var(--ink-faint); font-weight: 600; }
.project-card .facts span { display: inline-flex; align-items: center; gap: 6px; }
.project-card .facts svg { width: 14px; height: 14px; }

.cat-card { text-align: center; padding: 18px 14px; }
.cat-icon { width: 56px; height: 56px; margin: 4px auto 12px; border-radius: 14px; background: var(--soft); color: var(--primary); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); transition: background .2s, color .2s, transform .2s; }
.cat-icon svg { width: 26px; height: 26px; }
.cat-card:hover .cat-icon { background: var(--primary); color: var(--on-primary); transform: translateY(-2px); }
.cat-card .count { font-family: JetBrains Mono, monospace; font-size: 0.72rem; color: var(--ink-faint); font-weight: 600; margin-top: 6px; letter-spacing: 0.04em; }

.service-card { padding: 22px; }
.service-card .svc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.service-card .svc-icon svg { width: 22px; height: 22px; }
.service-card .num { font-family: JetBrains Mono, monospace; font-size: 0.70rem; color: var(--ink-faint); font-weight: 700; letter-spacing: 0.08em; margin-bottom: 8px; }

.team-card img { height: 300px; object-fit: cover; object-position: top; }
.team-card .role { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 4px; }

.award-card { display: flex; gap: 16px; padding: 20px; align-items: flex-start; }
.award-year { flex-shrink: 0; width: 72px; height: 72px; border-radius: 14px; background: var(--primary); color: var(--on-primary); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; line-height: 1; }
.award-year strong { font-size: 1.25rem; }
.award-year span { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.9; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.filter-bar a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 0.84rem; color: var(--ink-soft); transition: all .15s; }
.filter-bar a:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.filter-bar a.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.cta-band { background: var(--hero-gradient); padding: 64px 24px; text-align: center; color: var(--hero-text); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.cta-band::after { content: ""; position: absolute; inset: 0; opacity: 0.04; background-image: linear-gradient(var(--hero-text) 1px, transparent 1px), linear-gradient(90deg, var(--hero-text) 1px, transparent 1px); background-size: 36px 36px; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 10px; font-weight: 600; letter-spacing: -0.03em; }
.cta-band p { opacity: 0.88; margin-bottom: 22px; font-size: 1.02rem; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-band a { display: inline-block; background: var(--accent); color: var(--on-accent) !important; padding: 13px 30px; border-radius: var(--radius-pill); font-weight: 800; transition: transform .15s, filter .15s; }
.cta-band a:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.05); }

.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.testimonial .stars { color: var(--accent); margin-bottom: 10px; font-size: 0.9rem; letter-spacing: 1px; display: inline-flex; gap: 2px; }
.testimonial .text { font-style: italic; margin-bottom: 14px; color: var(--ink); line-height: 1.6; font-size: 0.94rem; }
.testimonial .author { font-weight: 700; font-size: 0.9rem; }
.testimonial .loc { font-size: 0.8rem; color: var(--ink-faint); }

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; background: var(--surface); }
.faq-list summary { padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); transition: transform .2s; flex-shrink: 0; font-weight: 400; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 18px 16px; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; }

.rich p { margin-bottom: 12px; }
.rich h2 { font-family: var(--font-head); font-size: 1.45rem; margin: 22px 0 10px; font-weight: 600; }
.rich h3 { font-family: var(--font-head); font-size: 1.15rem; margin: 16px 0 8px; font-weight: 600; }
.rich ul, .rich ol { margin: 0 0 12px 20px; }
.rich li { margin-bottom: 4px; }
.rich blockquote { border-left: 3px solid var(--accent); padding: 10px 16px; margin: 14px 0; background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }

.page-hero { background: var(--hero-gradient); padding: 64px 24px 56px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--hero-text); margin-bottom: 8px; font-weight: 600; letter-spacing: -0.03em; }
.page-hero p { color: color-mix(in srgb, var(--hero-text) 84%, transparent); max-width: 640px; margin: 0 auto; }
.breadcrumbs { display: flex; gap: 8px; justify-content: center; font-size: 0.82rem; margin-top: 14px; flex-wrap: wrap; }
.breadcrumbs a { color: color-mix(in srgb, var(--hero-text) 78%, transparent); }
.breadcrumbs a:hover { color: var(--hero-text); }
.breadcrumbs span { color: color-mix(in srgb, var(--hero-text) 60%, transparent); }

.process { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.process-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: relative; }
.process-step .step-num { font-family: JetBrains Mono, monospace; font-size: 0.72rem; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 8px; }
.process-step h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }

.form-wrap { max-width: 640px; margin: 0 auto; }
.form-grid { display: grid; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
label { display: block; font-weight: 700; font-size: 0.80rem; margin-bottom: 6px; letter-spacing: 0.02em; }
input, textarea, select { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.94rem; background: var(--surface); color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
textarea { resize: vertical; min-height: 100px; }
.btn { display: inline-block; background: var(--primary); color: var(--on-primary) !important; padding: 13px 28px; border-radius: var(--radius-pill); font-weight: 800; border: none; cursor: pointer; font-size: 0.94rem; transition: background .15s, transform .15s; text-align: center; }
.btn:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--ink) !important; }
.btn-ghost:hover { background: var(--soft); }
.success-box { background: color-mix(in srgb, #16a34a 10%, var(--bg)); border: 1px solid #16a34a; border-radius: var(--radius); padding: 24px; text-align: center; }
.success-box h3 { color: #16a34a; margin-bottom: 8px; font-family: var(--font-head); }

.consent-box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--soft); padding: 16px; }
.consent-box label { font-size: 0.88rem; font-weight: 500; line-height: 1.6; color: var(--ink-soft); margin: 0; display: flex; gap: 10px; align-items: flex-start; }
.consent-box input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--primary); }
.consent-box .consent-text { font-size: 0.82rem; color: var(--ink-soft); margin-top: 8px; padding-left: 30px; }
.consent-box a { color: var(--primary); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.72)); color: #fff; padding: 18px 12px 10px; font-size: 0.84rem; font-weight: 600; }

.site-footer { background: #0E1216; color: rgba(255,255,255,0.78); padding: 44px 0 0; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1.5fr; gap: 28px; padding: 0 24px 36px; max-width: 1200px; margin: 0 auto; }
.footer-col h3 { font-family: var(--font-head); color: #fff; font-size: 0.95rem; margin-bottom: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.footer-col p { font-size: 0.88rem; margin-bottom: 8px; opacity: 0.9; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { font-size: 0.88rem; }
.all-link { font-weight: 700; color: var(--accent) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 24px; text-align: center; font-size: 0.8rem; max-width: 1200px; margin: 0 auto; opacity: 0.7; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.footer-bottom .footer-sep { opacity: .5; margin: 0 2px; }
.powered-by { opacity: .8; }
.powered-by a { color: inherit; text-decoration: none; }
.powered-by a:hover { text-decoration: underline; opacity: 1; }
.social-links { display: flex; gap: 8px; margin-top: 10px; }
.social-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.08); transition: background .15s; }
.social-link:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.social-link svg { width: 17px; height: 17px; fill: currentColor; }

.wa-float { position: fixed; bottom: 20px; right: 20px; width: 52px; height: 52px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.2); z-index: 100; }
.wa-float:hover { background: #1ebe5b; text-decoration: none; }
.wa-float svg { width: 26px; height: 26px; }

.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 880px; margin: 32px auto 0; }
.stat-mini { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(8px); border-radius: var(--radius-lg); padding: 16px; text-align: center; color: var(--hero-text); }
.stat-mini strong { display: block; font-family: JetBrains Mono, monospace; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-mini span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.86; }
.hero-line { width: 40px; height: 1px; background: var(--accent); margin: 14px auto; }

/* ===================== Theme switcher ===================== */
.theme-btn {
  position: fixed; bottom: 92px; right: 24px; z-index: 110;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: background .15s, transform .15s;
}
.theme-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.theme-btn svg { width: 24px; height: 24px; }
.theme-panel {
  position: fixed; bottom: 156px; right: 24px; z-index: 120;
  width: 290px; max-width: calc(100vw - 32px);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px;
  display: none; text-align: left;
}
.theme-panel.open { display: block; }
.theme-panel h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }
.theme-panel .theme-sub { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 12px; }
.theme-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--soft); border: 2px solid transparent; border-radius: var(--radius);
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
  font-family: var(--font-body); color: var(--ink); transition: border-color .15s, background .15s;
}
.theme-card:hover { background: color-mix(in srgb, var(--soft) 60%, var(--primary-light)); }
.theme-card.active { border-color: var(--primary); background: var(--primary-light); }
.theme-swatches { display: flex; gap: 4px; flex-shrink: 0; }
.theme-swatches .sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }
.theme-card .t-name { font-weight: 700; font-size: 0.9rem; display: block; }
.theme-card .t-desc { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.35; display: block; }
.theme-note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 0.72rem; color: var(--ink-faint); line-height: 1.4; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 10px; gap: 0; box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .nav-link { width: 100%; border-radius: 10px; }
  .nav-toggle { display: block; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid.cols-2 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .theme-panel { right: 16px; bottom: 148px; }
  .theme-btn { right: 16px; bottom: 88px; }
}
