/* ===================================================================
   Black Lotus Tattoo — static demo
   Visual identity + 3 templates from modules/creative/TattooStudio-Module
   templates.ts (blackwork / flashsheet / monolith). Full CSS variable
   contract from DESIGN-SYSTEM.md so themes swap cleanly.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700;900&family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bevan&family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1vw + 11px, 17px);
  line-height: 1.65;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.container { width: min(1180px, 100% - clamp(32px, 6vw, 80px)); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 110px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.section-head.center .kicker::after { content: ""; width: 26px; height: 2px; background: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.4vw, 62px); }
h2 { font-size: clamp(27px, 3.6vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 23px); }
.lede { color: var(--ink-soft); font-size: clamp(16px, 1.2vw, 18px); margin-top: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.brand:hover { color: var(--primary); }
.brand-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 9px 13px; border-radius: var(--radius-pill);
  color: var(--ink-soft); font-size: 15px; font-weight: 600;
}
.nav-link:hover { color: var(--ink); background: var(--soft); }
.nav-link.active { color: var(--on-primary); background: var(--primary); }
.nav-cta { color: var(--on-primary) !important; background: var(--primary); border: 1px solid var(--primary); }
.nav-cta:hover { background: var(--primary-dark); }
.nav-toggle {
  display: none; margin-left: auto; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 1px solid var(--border);
  border-radius: var(--radius); background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-gradient);
  color: var(--hero-text);
}
.hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(72px, 12vw, 150px);
  max-width: 780px;
}
.hero-kicker {
  display: inline-block; font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  font-weight: 700; opacity: .85; margin-bottom: 18px;
  border: 1px solid currentColor; border-radius: var(--radius-pill); padding: 7px 16px;
}
.hero h1 { color: var(--hero-text); }
.hero p { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); opacity: .88; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-overlay { position: absolute; inset: 0; background: var(--hero-overlay); z-index: 1; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
/* hero carousel */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; z-index: 0; }
.hero-slide.show { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; min-height: 44px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); color: var(--on-primary); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline:hover { background: rgba(127,127,127,.12); color: inherit; }
.btn-light { background: var(--hero-text); color: var(--ink); }
.btn-light:hover { box-shadow: var(--shadow-md); }

/* ---------- badges & tags ---------- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--accent-light); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.tag {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); color: var(--ink-soft);
  font-size: 12px; font-weight: 600;
}

/* ---------- cards ---------- */
.card-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--soft); }
.card-body { padding: 22px; }
.card-body p { color: var(--ink-soft); margin-top: 8px; font-size: 15px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- module grids ---------- */
.style-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.style-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.style-card img { aspect-ratio: 16 / 11; width: 100%; object-fit: cover; transition: transform .35s ease; }
.style-card:hover img { transform: scale(1.04); }
.style-card-body { position: absolute; inset-inline: 0; bottom: 0; padding: 44px 20px 18px; background: linear-gradient(to top, rgba(8,8,10,.86), transparent); color: #fff; }
.style-card-body h3 { color: #fff; }
.style-card-body .from { font-size: 13px; opacity: .85; }

.artist-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.artist-card { text-align: left; }
.artist-photo {
  aspect-ratio: 4 / 4.6; width: 100%; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--soft);
  filter: saturate(.92); transition: filter .2s ease, transform .2s ease;
}
.artist-card:hover .artist-photo { filter: saturate(1.05); transform: translateY(-4px); }
.artist-card h3 { margin-top: 14px; }
.artist-spec { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.artist-years { color: var(--ink-faint); font-size: 14px; margin-top: 6px; }

.gallery-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.gallery-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.gallery-item img { aspect-ratio: 1 / 1.08; width: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(8,8,10,.82), transparent); color: #fff;
}
.gallery-cap strong { display: block; font-size: 15px; }
.gallery-cap span { font-size: 12.5px; opacity: .82; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(22px, 3vw, 34px); }
.filter-chip {
  padding: 9px 18px; min-height: 40px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.filter-chip:hover { border-color: var(--primary); color: var(--ink); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* ---------- prose (rich text) ---------- */
.prose { max-width: 76ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.7em; font-size: clamp(23px, 2.6vw, 30px); }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--ink-soft); }
.prose li + li { margin-top: .45em; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 6px 0 6px 20px;
  color: var(--ink-soft); font-style: italic; font-size: 1.05em;
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 700; font-family: var(--font-head); font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 20px 20px; color: var(--ink-soft); }
.faq-answer ul, .faq-answer ol { padding-left: 1.3em; margin-top: .6em; }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.quote-stars { color: var(--accent); letter-spacing: 3px; font-size: 15px; }
.quote-card blockquote { margin-top: 12px; color: var(--ink-soft); font-style: italic; }
.quote-author { margin-top: 16px; font-weight: 700; font-size: 14.5px; }

/* ---------- steps ---------- */
.steps { display: grid; gap: clamp(18px, 2.4vw, 26px); grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.step-num {
  counter-increment: step; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); font-weight: 800;
}
.step-num::before { content: counter(step); }
.step h3 { margin-top: 14px; font-size: 18px; }
.step p { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; }

/* ---------- notice ticker ---------- */
.notice-strip {
  display: flex; align-items: center; gap: 14px;
  background: var(--accent-light); border: 1px dashed var(--accent);
  border-radius: var(--radius); padding: 13px 18px; margin-bottom: clamp(26px, 4vw, 44px);
  font-size: 14.5px;
}
.notice-strip .badge { flex-shrink: 0; }
.notice-strip a { font-weight: 700; white-space: nowrap; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.form-field { display: grid; gap: 7px; }
.form-field label { font-weight: 700; font-size: 14px; }
.form-field .hint { font-size: 12.5px; color: var(--ink-faint); }
.form-input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; min-height: 46px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
}
.form textarea { min-height: 130px; resize: vertical; }
.form-input:focus, .form textarea:focus, .form select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-light); }
.consent-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.consent-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-radius: var(--radius); padding: 14px 18px; font-size: 14.5px; font-weight: 600; }
.form-alert.success { background: var(--success-bg, #e8f5ee); color: var(--success-ink, #1d6b43); border: 1px solid var(--success-bd, #b5e0c9); }
.success-box { background: var(--success-bg, #e8f5ee); color: var(--success-ink, #1d6b43); border: 1px solid var(--success-bd, #b5e0c9); border-radius: var(--radius-lg); padding: 28px 30px; max-width: 720px; }
.success-box h3 { font-family: var(--font-head); margin-bottom: 10px; }
.success-box p { color: var(--ink-soft); }
.success-box a { font-weight: 700; }

/* ---------- info panels ---------- */
.info-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.info-panel h3 { margin-bottom: 12px; }
.hours-line { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.hours-line:last-child { border-bottom: 0; }
.hours-line span:first-child { color: var(--ink-soft); }

/* ---------- breadcrumbs + pager ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-faint); margin-bottom: 22px; }
.crumbs a { color: var(--ink-soft); }
.crumbs .sep { margin-inline: 8px; color: var(--ink-faint); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: clamp(28px, 4vw, 44px); }
.page-btn {
  min-width: 42px; min-height: 42px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--ink-soft); font-weight: 700; font-size: 14px;
  text-decoration: none;
}
.page-btn.current { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.page-btn:hover:not(.current) { border-color: var(--primary); color: var(--ink); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(44px, 7vw, 84px);
}
.page-hero h1 { font-size: clamp(30px, 4.4vw, 52px); }
.page-hero .sub { color: var(--ink-soft); margin-top: 12px; max-width: 65ch; font-size: clamp(15.5px, 1.2vw, 17.5px); }
.page-body { padding-block: clamp(40px, 6vw, 80px); }

/* ---------- cta band ---------- */
.cta-band {
  background: var(--hero-gradient); color: var(--hero-text);
  border-radius: var(--radius-lg);
  padding: clamp(38px, 6vw, 76px) clamp(22px, 4vw, 60px);
  text-align: center;
}
.cta-band h2 { color: var(--hero-text); }
.cta-band p { opacity: .85; max-width: 58ch; margin: 14px auto 0; }
.cta-band .btn { margin-top: 26px; }

/* ---------- detail layout ---------- */
.detail-layout { display: grid; gap: clamp(30px, 4.5vw, 60px); grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; }
.meta-list { display: grid; gap: 0; }
.meta-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.meta-list > div:last-child { border-bottom: 0; }
.meta-list span:first-child { color: var(--ink-faint); }

/* ---------- empty state ---------- */
.empty {
  text-align: center; padding: clamp(40px, 7vw, 80px) 20px;
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
  color: var(--ink-soft); background: var(--surface);
}
.empty strong { display: block; font-family: var(--font-head); font-size: 20px; color: var(--ink); margin-bottom: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 0; }
.footer-inner {
  display: grid; gap: clamp(28px, 4vw, 48px);
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  padding-block: clamp(44px, 6vw, 72px);
}
.footer-col h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; color: var(--ink); }
.footer-col p { color: var(--ink-soft); font-size: 14.5px; margin-top: 10px; }
.footer-desc { font-size: 14px !important; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: var(--ink-soft); font-size: 14.5px; }
.footer-links a:hover { color: var(--primary); }
.all-link { font-weight: 700; color: var(--primary) !important; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--border); padding-block: 20px;
  font-size: 13.5px; color: var(--ink-faint);
}
.footer-sep { margin-inline: 6px; opacity: .75; }
.social-links { display: flex; gap: 10px; }
.social-link {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 50%; color: var(--ink-soft);
}
.social-link svg { width: 17px; height: 17px; }
.social-link:hover { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: var(--shadow-lg);
}
.wa-float:hover { background: #1ebe5b; }
.wa-float svg { width: 26px; height: 26px; }

/* ===================================================================
   Templates — exactly from TattooStudio-Module templates.ts
   id / name / description / swatches copied verbatim
   =================================================================== */

/* ---- default: blackwork (module's first/default template) ---- */
:root {
  --primary: #d22f3f;
  --primary-dark: #a81f2e;
  --primary-light: #3a1519;
  --accent: #c9a227;
  --accent-light: #2b2410;
  --bg: #101013;
  --bg-alt: #16161a;
  --surface: #1a1a1f;
  --soft: #232329;
  --border: #2c2c33;
  --ink: #ece7df;
  --ink-soft: #b3aca1;
  --ink-faint: #7d776d;
  --on-primary: #ffffff;
  --font-head: 'Archivo', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --hero-gradient: radial-gradient(1200px 600px at 85% -10%, rgba(210,47,63,.28), transparent 60%), linear-gradient(160deg, #0b0b0d 0%, #17171c 55%, #221318 100%);
  --hero-overlay: rgba(11, 11, 13, 0.35);
  --hero-text: #f4efe7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 10px 28px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.6);
}
html[data-theme="blackwork"] {
  --primary: #d22f3f; --primary-dark: #a81f2e; --primary-light: #3a1519;
  --accent: #c9a227; --accent-light: #2b2410;
  --bg: #101013; --bg-alt: #16161a; --surface: #1a1a1f; --soft: #232329;
  --border: #2c2c33; --ink: #ece7df; --ink-soft: #b3aca1; --ink-faint: #7d776d;
  --on-primary: #ffffff;
  --font-head: 'Archivo', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px; --radius-lg: 18px; --radius-pill: 999px;
  --hero-gradient: radial-gradient(1200px 600px at 85% -10%, rgba(210,47,63,.28), transparent 60%), linear-gradient(160deg, #0b0b0d 0%, #17171c 55%, #221318 100%);
  --hero-overlay: rgba(11, 11, 13, 0.35);
  --hero-text: #f4efe7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 10px 28px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.6);
}
body { letter-spacing: .005em; }
html[data-theme="blackwork"] h1, html[data-theme="blackwork"] h2, html[data-theme="blackwork"] h3 { text-transform: uppercase; font-weight: 900; letter-spacing: .01em; }
:root:not([data-theme]) h1, :root:not([data-theme]) h2, :root:not([data-theme]) h3 { text-transform: uppercase; font-weight: 900; letter-spacing: .01em; }
html[data-theme="blackwork"] .brand, :root:not([data-theme]) .brand { text-transform: uppercase; letter-spacing: .06em; }
html[data-theme="blackwork"] .site-header, :root:not([data-theme]) .site-header { background: rgba(16,16,19,.92); backdrop-filter: blur(8px); }
html[data-theme="blackwork"] .kicker, :root:not([data-theme]) .kicker { color: var(--primary); }
html[data-theme="blackwork"] .kicker::before, html[data-theme="blackwork"] .section-head.center .kicker::after, :root:not([data-theme]) .kicker::before, :root:not([data-theme]) .section-head.center .kicker::after { background: var(--primary); }
html[data-theme="blackwork"] .card, :root:not([data-theme]) .card { background: var(--surface); }
html[data-theme="blackwork"] .card:hover, :root:not([data-theme]) .card:hover { box-shadow: 0 0 0 1px var(--primary), var(--shadow-md); }
html[data-theme="blackwork"] .badge, :root:not([data-theme]) .badge { background: var(--primary-light); color: #f0b9bf; }
html[data-theme="blackwork"] .notice-strip, :root:not([data-theme]) .notice-strip { background: var(--primary-light); border-color: var(--primary); color: var(--ink); }
html[data-theme="blackwork"] .form-alert.success, :root:not([data-theme]) .form-alert.success,
html[data-theme="blackwork"] .success-box, :root:not([data-theme]) .success-box { background: #14291e; color: #9fd8ba; border-color: #2b5741; }
html[data-theme="blackwork"] .hero-inner::after, :root:not([data-theme]) .hero-inner::after { content: ""; display: block; width: 84px; height: 5px; background: var(--primary); margin-top: 34px; }
html[data-theme="blackwork"] .hero, :root:not([data-theme]) .hero { border-bottom: 1px solid var(--border); }

/* ---- flashsheet ---- */
html[data-theme="flashsheet"] {
  --primary: #8a3033; --primary-dark: #6d2225; --primary-light: #f0dcda;
  --accent: #c99a3c; --accent-light: #f3e6c8;
  --bg: #f6efe2; --bg-alt: #efe5d2; --surface: #fdf9f0; --soft: #eee3cd;
  --border: #ddcdb2; --ink: #2b2018; --ink-soft: #6b5a49; --ink-faint: #9c8b74;
  --on-primary: #fdf6ea;
  --font-head: 'Bevan', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, 'Segoe UI', sans-serif;
  --radius: 8px; --radius-lg: 16px; --radius-pill: 999px;
  --hero-gradient: linear-gradient(150deg, #2b2018 0%, #58352c 55%, #8a3033 100%);
  --hero-overlay: rgba(43, 32, 24, 0.25);
  --hero-text: #f8f1e3;
  --shadow-sm: 0 1px 3px rgba(74, 56, 38, 0.12);
  --shadow-md: 0 6px 20px rgba(74, 56, 38, 0.16);
  --shadow-lg: 0 14px 40px rgba(74, 56, 38, 0.22);
}
html[data-theme="flashsheet"] body { background-image: repeating-linear-gradient(0deg, rgba(138,48,51,.025) 0 2px, transparent 2px 96px); }
html[data-theme="flashsheet"] h1, html[data-theme="flashsheet"] h2, html[data-theme="flashsheet"] h3 { font-weight: 400; letter-spacing: .015em; text-transform: none; }
html[data-theme="flashsheet"] .brand { letter-spacing: .04em; text-transform: none; }
html[data-theme="flashsheet"] .kicker { color: var(--primary-dark); }
html[data-theme="flashsheet"] .kicker::before, html[data-theme="flashsheet"] .section-head.center .kicker::after { background: var(--accent); }
html[data-theme="flashsheet"] .hero-inner::after { content: "★ ★ ★"; display: block; margin-top: 32px; color: var(--accent); font-size: 18px; letter-spacing: 12px; }
html[data-theme="flashsheet"] .card, html[data-theme="flashsheet"] .quote-card, html[data-theme="flashsheet"] .info-panel, html[data-theme="flashsheet"] .step { box-shadow: var(--shadow-sm); border-width: 1.5px; }
html[data-theme="flashsheet"] .step-num { background: var(--accent); color: #2b2018; }
html[data-theme="flashsheet"] .badge { background: var(--accent-light); color: #6d5416; }
html[data-theme="flashsheet"] blockquote { font-style: normal; }
html[data-theme="flashsheet"] .prose blockquote { border-left-color: var(--primary); }
html[data-theme="flashsheet"] .form-alert.success, html[data-theme="flashsheet"] .success-box { background: #e8f5ee; color: #1d6b43; border-color: #b5e0c9; }

/* ---- monolith ---- */
html[data-theme="monolith"] {
  --primary: #141416; --primary-dark: #000000; --primary-light: #e8e8e4;
  --accent: #2545ff; --accent-light: #e4e9ff;
  --bg: #fafaf8; --bg-alt: #f1f1ed; --surface: #ffffff; --soft: #ececea;
  --border: #dededa; --ink: #141416; --ink-soft: #55555a; --ink-faint: #90909a;
  --on-primary: #ffffff;
  --font-head: 'Newsreader', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius: 6px; --radius-lg: 12px; --radius-pill: 999px;
  --hero-gradient: linear-gradient(180deg, #fafaf8 0%, #edede8 100%);
  --hero-overlay: rgba(250, 250, 248, 0.4);
  --hero-text: #141416;
  --shadow-sm: 0 1px 2px rgba(20,20,22,.06);
  --shadow-md: 0 8px 24px rgba(20,20,22,.08);
  --shadow-lg: 0 16px 44px rgba(20,20,22,.12);
}
html[data-theme="monolith"] h1, html[data-theme="monolith"] h2, html[data-theme="monolith"] h3 { font-weight: 600; letter-spacing: -.015em; text-transform: none; }
html[data-theme="monolith"] h1 em, html[data-theme="monolith"] .hero h1 em { font-style: italic; color: var(--accent); }
html[data-theme="monolith"] .kicker { color: var(--accent); }
html[data-theme="monolith"] .kicker::before, html[data-theme="monolith"] .section-head.center .kicker::after { background: var(--accent); }
html[data-theme="monolith"] .site-header { background: rgba(250,250,248,.9); backdrop-filter: blur(8px); }
html[data-theme="monolith"] .nav-link.active { color: var(--ink); background: var(--soft); }
html[data-theme="monolith"] .nav-cta { background: var(--ink); border-color: var(--ink); }
html[data-theme="monolith"] .nav-cta:hover { background: var(--accent); border-color: var(--accent); }
html[data-theme="monolith"] .btn-primary { background: var(--ink); }
html[data-theme="monolith"] .btn-primary:hover { background: var(--accent); }
html[data-theme="monolith"] .hero { border-bottom: 1px solid var(--border); }
html[data-theme="monolith"] .hero-inner { max-width: 860px; }
html[data-theme="monolith"] .hero-inner::after { content: ""; display: block; width: 64px; height: 3px; background: var(--accent); margin-top: 36px; }
html[data-theme="monolith"] .card, html[data-theme="monolith"] .style-card, html[data-theme="monolith"] .artist-photo, html[data-theme="monolith"] .gallery-item { border-radius: var(--radius-lg); }
html[data-theme="monolith"] .card:hover { box-shadow: var(--shadow-md); }
html[data-theme="monolith"] .step-num { background: var(--ink); }
html[data-theme="monolith"] .badge { background: var(--accent-light); color: #1c34b8; }
html[data-theme="monolith"] .quote-card { border-left: 3px solid var(--accent); }
html[data-theme="monolith"] .hero .btn-outline { color: var(--hero-text); }
html[data-theme="monolith"] .hero .lede { color: var(--ink-soft); opacity: 1; }
html[data-theme="monolith"] .form-alert.success, html[data-theme="monolith"] .success-box { background: #e8f5ee; color: #1d6b43; border-color: #b5e0c9; }

/* ===================================================================
   Theme switcher (floating Themes button + panel)
   =================================================================== */
.theme-btn {
  position: fixed; bottom: 86px; 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: 150px; 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(127,127,127,.25); }
.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; }

/* ---------- responsive ---------- */
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .detail-layout { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 14px clamp(16px, 4vw, 40px) 20px; box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .theme-panel { right: 16px; bottom: 142px; }
  .theme-btn { right: 16px; bottom: 82px; }
}
