@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Playfair+Display:wght@400;500;600&family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&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; }
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: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===================== Theme palettes ===================== */
:root {
  --primary: #d9a441;
  --primary-dark: #b8862e;
  --primary-light: #2e2514;
  --accent: #e05252;
  --accent-light: #38201f;
  --bg: #0e0e11;
  --bg-alt: #15151a;
  --surface: #1a1a20;
  --soft: #24242c;
  --border: #2d2d37;
  --ink: #f2efe9;
  --ink-soft: #b7b3a8;
  --ink-faint: #7d7a70;
  --on-primary: #16110a;
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --hero-gradient: radial-gradient(120% 140% at 20% 0%, #2a2414 0%, #141218 48%, #0c0c0f 100%);
  --hero-overlay: linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.72) 100%);
  --hero-text: #f6f2e9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 10px 34px rgba(0,0,0,0.45);
  --shadow-lg: 0 16px 56px rgba(0,0,0,0.55);
}
html[data-theme="daylight"] {
  --primary: #16161d;
  --primary-dark: #000000;
  --primary-light: #eceef3;
  --accent: #1f4fd8;
  --accent-light: #e8edfc;
  --bg: #fafaf8;
  --bg-alt: #f1f1ec;
  --surface: #ffffff;
  --soft: #ebebe5;
  --border: #deded6;
  --ink: #16161d;
  --ink-soft: #565660;
  --ink-faint: #91919a;
  --on-primary: #ffffff;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(160deg, #ffffff 0%, #f1f1ec 60%, #e7e7e0 100%);
  --hero-overlay: linear-gradient(180deg, rgba(22,22,29,0.02) 0%, rgba(22,22,29,0.30) 100%);
  --hero-text: #16161d;
  --shadow-sm: 0 1px 2px rgba(22,22,29,0.06);
  --shadow-md: 0 6px 24px rgba(22,22,29,0.08);
  --shadow-lg: 0 16px 48px rgba(22,22,29,0.1);
}
html[data-theme="chrome"] {
  --primary: #e4572e;
  --primary-dark: #c0401c;
  --primary-light: #fbe4d8;
  --accent: #1c7c94;
  --accent-light: #d9ecec;
  --bg: #f4ead8;
  --bg-alt: #ecdfc6;
  --surface: #fffaf0;
  --soft: #e9dcc2;
  --border: #d4bf96;
  --ink: #211c14;
  --ink-soft: #5c513d;
  --ink-faint: #8c7d63;
  --on-primary: #fff7ec;
  --font-head: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', -apple-system, sans-serif;
  --radius: 4px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #211c14 0%, #4a3320 55%, #e4572e 140%);
  --hero-overlay: linear-gradient(180deg, rgba(33,28,20,0.35) 0%, rgba(33,28,20,0.68) 100%);
  --hero-text: #fff7ec;
  --shadow-sm: 0 1px 2px rgba(33,28,20,0.14);
  --shadow-md: 0 6px 20px rgba(33,28,20,0.16);
  --shadow-lg: 0 14px 44px rgba(33,28,20,0.2);
}

/* ===================== Base layout & components (from templates.ts BASE_CSS) ===================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); background: color-mix(in srgb, var(--bg) 90%, 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: 12px 24px; max-width: 1140px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 44px; width: auto; border-radius: var(--radius); }
.brand-name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em; }
.brand-name span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link { color: var(--ink); font-weight: 500; font-size: 0.92rem; 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: 9px 22px; transition: background .15s; font-weight: 600; }
.nav-cta:hover { background: var(--primary-dark); }
.nav-cta.active { background: var(--primary-dark); }
.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; min-height: 72vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--hero-gradient); background-size: cover; background-position: center; padding: 120px 24px; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; color: var(--hero-text); }
.hero .kicker { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.32em; color: var(--accent); margin-bottom: 16px; display: inline-block; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.12; margin-bottom: 16px; font-weight: 400; }
.hero .tagline { font-size: clamp(1.05rem, 2vw, 1.3rem); opacity: 0.92; margin-bottom: 12px; }
.hero .desc { font-size: 1rem; opacity: 0.78; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-cta a { padding: 14px 32px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.95rem; }
.hero-cta .primary { background: var(--accent); color: var(--on-primary) !important; }
.hero-cta .primary:hover { text-decoration: none; filter: brightness(1.1); }
.hero-cta .ghost { border: 2px solid rgba(255,255,255,0.5); color: #fff !important; }
.hero-cta .ghost:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-head .eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--primary); margin-bottom: 10px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; font-weight: 400; }
.section-head p { color: var(--ink-soft); }

.card-grid { display: grid; gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 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: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 8px; font-weight: 500; }
.card-body p { font-size: 0.92rem; color: var(--ink-soft); }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { display: inline-block; font-size: 0.75rem; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--soft); color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.price-tag { font-family: var(--font-head); font-size: 1.3rem; color: var(--primary); font-weight: 600; }
.link-more { font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }
.link-more:hover { text-decoration: none; color: var(--primary-dark); }

/* ---- Portfolio work grid ---- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block; background: var(--surface); border: 1px solid var(--border); transition: transform .25s, box-shadow .25s; }
.work-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-cover { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .work-cover { transform: scale(1.04); }
.work-art { aspect-ratio: 4 / 3; width: 100%; }
.work-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.work-title { font-family: var(--font-head); font-size: 1.08rem; font-weight: 500; color: var(--ink); }
.work-count { font-size: 0.8rem; color: var(--ink-faint); white-space: nowrap; }
.work-overlay { position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(0,0,0,0.72)); color: #fff; opacity: 0; transition: opacity .25s; }
.work-card:hover .work-overlay { opacity: 1; }
.work-overlay .work-title { color: #fff; }

/* ---- Placeholder art frames ---- */
.art-frame { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, var(--bg-alt), var(--soft)); }
.art-frame svg { color: var(--primary); opacity: 0.85; }
.art-frame .art-label { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-faint); }
.art-frame::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1.5px dashed var(--primary); opacity: 0.45; }
.art-frame::after { content: ""; position: absolute; inset: 26%; border-radius: 50%; border: 1.5px solid var(--primary); opacity: 0.3; }
.aperture-badge { display: inline-flex; align-items: center; justify-content: center; }

/* ---- Category chips ---- */
.category-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.category-chips a { padding: 8px 18px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--ink-soft); font-size: 0.85rem; font-weight: 500; transition: all .15s; }
.category-chips a:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.category-chips a.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* ---- Gallery detail photo grid ---- */
.photo-grid { columns: 3; column-gap: 16px; }
.photo-item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid var(--border); background: var(--surface); }
.photo-item img { width: 100%; }
.photo-item .photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,0.65)); color: #fff; font-size: 0.82rem; opacity: 0; transition: opacity .2s; }
.photo-item:hover .photo-caption { opacity: 1; }

/* ---- Packages ---- */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.package-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 28px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.package-card.popular { border-color: var(--primary); box-shadow: var(--shadow-md); }
.popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--on-primary); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; padding: 5px 16px; border-radius: var(--radius-pill); white-space: nowrap; }
.package-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 500; }
.package-price { font-family: var(--font-head); font-size: 2rem; color: var(--primary); margin: 8px 0 2px; }
.package-duration { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 18px; }
.include-list { list-style: none; margin-bottom: 26px; flex: 1; }
.include-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); padding: 5px 0; }
.include-list li svg { flex-shrink: 0; color: var(--primary); margin-top: 4px; }
.package-card .btn { text-align: center; }

/* ---- Services ---- */
.service-card { padding: 30px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.icon-chip { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--primary-light); color: var(--primary); margin-bottom: 18px; }
.service-card h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { text-align: center; padding: 34px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform .25s, box-shadow .25s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--soft); display: block; }
.avatar-initial { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 2.4rem; color: var(--primary); background: var(--primary-light); }
.team-card h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; }
.team-card .role { color: var(--primary); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 4px 0 8px; }
.team-card .specialty { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 10px; }
.team-card .bio { font-size: 0.88rem; color: var(--ink-soft); }

/* ---- Testimonials ---- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.testimonial .stars { color: var(--accent); margin-bottom: 12px; font-size: 1rem; display: flex; gap: 2px; }
.testimonial .text { font-style: italic; margin-bottom: 16px; color: var(--ink-soft); }
.testimonial .author { font-weight: 600; font-size: 0.92rem; }
.testimonial .project-type { font-size: 0.8rem; color: var(--ink-faint); }

/* ---- CTA band ---- */
.cta-band { background: var(--hero-gradient); padding: 72px 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 .container { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; font-weight: 400; }
.cta-band p { opacity: 0.85; margin-bottom: 26px; }
.cta-band a { display: inline-block; background: var(--accent); color: var(--on-primary) !important; padding: 14px 36px; border-radius: var(--radius-pill); font-weight: 700; }
.cta-band a:hover { text-decoration: none; filter: brightness(1.1); }

/* ---- Pages ---- */
.page-hero { background: var(--hero-gradient); padding: 70px 24px 60px; 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.8rem); color: var(--hero-text); margin-bottom: 10px; font-weight: 400; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto; }
.breadcrumbs { display: flex; gap: 8px; justify-content: center; flex-wrap:wrap; font-size: 0.85rem; margin-top: 18px; }
.breadcrumbs a { color: rgba(255,255,255,0.8); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: rgba(255,255,255,0.6); }

.gallery-desc { max-width: 720px; margin: 0 auto 40px; text-align: center; color: var(--ink-soft); }

/* ---- Forms ---- */
.form-wrap { max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .span-2 { grid-column: span 2; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem; background: var(--bg); 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) 18%, transparent); }
textarea { resize: vertical; min-height: 110px; }
.btn { display: inline-block; background: var(--primary); color: var(--on-primary) !important; padding: 13px 32px; border-radius: var(--radius-pill); font-weight: 700; border: none; cursor: pointer; font-size: 0.95rem; transition: background .15s, transform .15s; }
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-outline { background: none; border: 2px solid var(--primary); color: var(--primary) !important; }
.btn-outline:hover { background: var(--primary); color: var(--on-primary) !important; }
.success-box { background: color-mix(in srgb, var(--primary-light) 60%, var(--bg)); border: 1px solid var(--primary); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.success-box h3 { color: var(--primary); margin-bottom: 8px; }
.success-box p { color: var(--ink-soft); }
.error-box { background: color-mix(in srgb, #fecaca 30%, var(--bg)); border: 1px solid #fca5a5; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; color: #b91c1c; font-weight: 600; }
.consent-box { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.consent-box input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--primary); }
.consent-box span { font-size: 0.85rem; font-weight: 500; line-height: 1.6; color: var(--ink-soft); }

/* ---- Pager ---- */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-weight: 600; font-size: 0.9rem; }
.pager a:hover { background: var(--soft); text-decoration: none; }
.pager .current { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* ---- Rich text ---- */
.rich p { margin-bottom: 12px; }
.rich h2 { font-family: var(--font-head); font-size: 1.5rem; margin: 20px 0 10px; font-weight: 500; }
.rich h3 { font-family: var(--font-head); font-size: 1.25rem; margin: 16px 0 8px; font-weight: 500; }
.rich ul, .rich ol { margin: 0 0 12px 20px; }
.rich li { margin-bottom: 4px; }
.rich blockquote { border-left: 3px solid var(--accent); padding: 8px 16px; margin: 12px 0; background: var(--soft); border-radius: 0 8px 8px 0; font-style: italic; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 82%, transparent); padding: 56px 0 0; margin-top: 0; }
.site-footer a { color: color-mix(in srgb, var(--bg) 82%, transparent); }
.site-footer a:hover { color: var(--bg); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px; padding: 0 24px 40px; max-width: 1140px; margin: 0 auto; }
.footer-col h3 { font-family: var(--font-head); color: var(--bg); font-size: 1.05rem; margin-bottom: 14px; font-weight: 500; }
.footer-col p { font-size: 0.88rem; margin-bottom: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { font-size: 0.88rem; }
.all-link { font-weight: 600; color: var(--primary) !important; }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); padding: 16px 24px; text-align: center; font-size: 0.82rem; max-width: 1140px; margin: 0 auto; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:6px 12px; }
.footer-sep{opacity:.45}
/* Powered by Krittim — https://krittim.in (branding markup in layout.tsx) */
.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: 12px; }
.social-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--bg) 10%, transparent); transition: background .15s; }
.social-link:hover { background: color-mix(in srgb, var(--bg) 20%, transparent); text-decoration: none; }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }

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

.empty-state { text-align: center; padding: 60px 24px; color: var(--ink-faint); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.empty-state h3 { font-family: var(--font-head); color: var(--ink-soft); margin-bottom: 8px; font-weight: 500; }

/* ===================== Template extras (Obsidian default) ===================== */
.hero::after { background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px); background-size: 22px 22px; }
.hero-content .kicker::before, .hero-content .kicker::after { content: "—"; margin: 0 10px; opacity: 0.6; }
.section-head .eyebrow { letter-spacing: 0.3em; }
.work-cover, .work-art { border-radius: var(--radius-lg); }
.card-grid { margin-top: 8px; }

/* Daylight overrides */
html[data-theme="daylight"] body { line-height: 1.8; }
html[data-theme="daylight"] .hero { min-height: 64vh; }
html[data-theme="daylight"] .hero-content .kicker { color: var(--primary); }
html[data-theme="daylight"] .hero-content .kicker::before, html[data-theme="daylight"] .hero-content .kicker::after { content: none; }
html[data-theme="daylight"] .hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 96px 96px; opacity: 0.35; mask-image: linear-gradient(180deg, transparent 0%, #000 40%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); }
html[data-theme="daylight"] .work-card { border-radius: 4px; border: 1px solid var(--border); }
html[data-theme="daylight"] .work-title { font-family: var(--font-head); }
html[data-theme="daylight"] .section-head h2 { font-weight: 400; }
html[data-theme="daylight"] .package-card { border-radius: 4px; }
html[data-theme="daylight"] .service-card, html[data-theme="daylight"] .team-card, html[data-theme="daylight"] .testimonial { border-radius: 4px; }
html[data-theme="daylight"] .cta-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
html[data-theme="daylight"] .tag { border: 1px solid var(--border); background: transparent; color: var(--ink-soft); }
html[data-theme="daylight"] .site-header { border-bottom: 1px solid var(--border); }

/* Chrome overrides */
html[data-theme="chrome"] .hero { min-height: 70vh; }
html[data-theme="chrome"] .hero .kicker { background: var(--accent); color: var(--bg); padding: 6px 14px; letter-spacing: 0.12em; transform: rotate(-1.5deg); margin-bottom: 22px; }
html[data-theme="chrome"] .hero h1 { font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
html[data-theme="chrome"] .hero .tagline { font-weight: 500; }
html[data-theme="chrome"] .hero-cta .primary { border-radius: 4px; transform: rotate(-1deg); }
html[data-theme="chrome"] .hero-cta .ghost { border-radius: 4px; }
html[data-theme="chrome"] .hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 38px, rgba(255,255,255,0.05) 38px 40px); }
html[data-theme="chrome"] .section-head .eyebrow { background: var(--primary-light); padding: 4px 12px; letter-spacing: 0.14em; border-radius: 4px; }
html[data-theme="chrome"] .section-head h2 { font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
html[data-theme="chrome"] .work-card { border-radius: 4px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
html[data-theme="chrome"] .work-card:hover { box-shadow: 8px 8px 0 var(--ink); transform: translate(-2px,-2px); }
html[data-theme="chrome"] .package-card { border-radius: 4px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
html[data-theme="chrome"] .package-card.popular { border-color: var(--primary); box-shadow: 6px 6px 0 var(--primary); }
html[data-theme="chrome"] .popular-badge { border-radius: 4px; }
html[data-theme="chrome"] .service-card, html[data-theme="chrome"] .team-card, html[data-theme="chrome"] .testimonial { border-radius: 4px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
html[data-theme="chrome"] .tag { border: 1.5px solid var(--primary); background: transparent; color: var(--primary); }
html[data-theme="chrome"] .icon-chip { border-radius: 4px; background: var(--accent-light); }
html[data-theme="chrome"] .cta-band { border-top: 6px solid var(--accent); }
html[data-theme="chrome"] .btn { border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.88rem; }
html[data-theme="chrome"] .btn-outline { border-radius: 4px; }
html[data-theme="chrome"] .form-wrap { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); border-radius: 4px; }
html[data-theme="chrome"] .nav-cta { border-radius: 4px; }
html[data-theme="chrome"] .nav-link { border-radius: 4px; }

/* ===================== 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: 280px; 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: 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; flex-direction: column; 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; }
.theme-card .t-desc { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.35; }
.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; }

@media (max-width: 960px) {
  .card-grid.cols-3, .card-grid.cols-4, .work-grid, .package-grid, .team-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .photo-grid { columns: 2; }
}
@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: 8px; gap: 0; }
  .nav.open { display: flex; }
  .nav-link { width: 100%; }
  .nav-toggle { display: block; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4, .work-grid, .package-grid, .team-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .photo-grid { columns: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .section { padding: 56px 0; }
}
