/* ===== Signature: the flagship card layout =====
   Built for real use: the visitor sees who you are, whether you are open, and can call, message, save your contact or get
   directions with one tap. Information sits in clean cards on a calm background, the way LinkedIn, HiHello and Google
   Business profiles do it. All colour comes from the owner's palette (--accent) and light / dark mode. */

body.pro {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: var(--font);
  --sg-page: color-mix(in srgb, var(--ink) 5%, var(--surface));
  --sg-line: color-mix(in srgb, var(--ink) 10%, transparent);
  --sg-soft: color-mix(in srgb, var(--accent) 11%, var(--surface));
  --sg-r: 22px;
  --sg-ease: cubic-bezier(.2, .8, .2, 1);
  font-family: var(--font);
  background: var(--sg-page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body.pro[data-card-mode="dark"] { --sg-page: #0b0d12; --sg-line: rgba(255, 255, 255, .09); --sg-soft: color-mix(in srgb, var(--accent) 20%, var(--surface)); }

/* desktop: a soft wash of the cover behind the phone-width column */
body.pro::before { content: ""; position: fixed; inset: -40px; z-index: -1; background: var(--sg-cover, none) center / cover no-repeat; filter: blur(46px) saturate(1.2); opacity: .30; pointer-events: none; }
body.pro .page { width: min(100%, 460px); margin: 0 auto; padding: 0; }
body.pro .card { display: block; width: 100%; max-width: none; min-height: 100vh; margin: 0; padding: 0 0 calc(60px + env(safe-area-inset-bottom)); background: var(--surface); border: 0; border-radius: 0; box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 8%, transparent), 0 1px 3px rgba(8, 12, 24, .06); overflow: visible; }

/* ---------- the profile card: cover, photo, name, actions ---------- */
.sg-top { background: var(--surface); border-radius: 0; overflow: clip; border-bottom: 1px solid var(--sg-line); }
body.pro .card-hero { position: relative; height: 196px; min-height: 0; border-radius: 0; background: color-mix(in srgb, var(--accent) 55%, #0b1020); overflow: visible; box-shadow: none; }
body.pro .card-hero::before, body.pro .card-hero::after { display: none; }
body.pro .cover { position: absolute; inset: 0; height: 100%; border-radius: 0; }
body.pro .cover::before { display: none; }
body.pro .cover::after { content: ""; display: block; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 24, .30) 0%, rgba(8, 12, 24, 0) 38%, rgba(8, 12, 24, .22) 100%); }
body.pro .hero-bottom { position: absolute; left: 20px; right: 20px; bottom: 0; top: auto; width: auto; display: block; padding: 0; transform: none; height: 0; z-index: 4; }
body.pro .profile-wrap { position: absolute; left: 0; bottom: -46px; width: 96px; height: 96px; border-radius: 24px; z-index: 5; background: #fff; box-shadow: 0 0 0 4px var(--surface), 0 10px 24px -10px rgba(8, 12, 24, .45); }
body.pro .profile { width: 96px; height: 96px; border: 0; border-radius: 24px; padding: 3px; background: #fff; box-shadow: none; object-fit: contain; }
body.pro .qr-block { display: none; }
/* glass buttons on the cover */
.sg-hero-btns { position: absolute; top: 14px; right: 14px; z-index: 6; display: flex; gap: 8px; }
.sg-glass { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(15, 20, 35, .42); color: #fff; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .18s ease, transform .18s var(--sg-ease); }
.sg-glass:hover { background: rgba(15, 20, 35, .62); transform: translateY(-1px); }
.sg-glass:active { transform: scale(.94); }
.sg-glass svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

body.pro .identity { position: relative; text-align: left; padding: 58px 20px 4px; margin: 0; background: transparent; }
.sg-save { position: absolute; top: 14px; right: 20px; }
.sg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; font: 600 0.92rem/1 var(--font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: transform .18s var(--sg-ease), background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease; }
.sg-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sg-btn.is-primary { background: var(--accent); color: #fff; }
.sg-btn.is-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 70%, transparent); filter: brightness(1.05); }
.sg-btn.is-ghost { background: transparent; color: var(--ink); border-color: var(--sg-line); }
.sg-btn.is-ghost:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); transform: translateY(-1px); }
.sg-btn:active { transform: scale(.97); }
.sg-btn:focus-visible, .sg-glass:focus-visible, .sg-act:focus-visible, body.pro a:focus-visible, body.pro button:focus-visible { outline: 2.5px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }

body.pro .brand { margin: 0; font-family: var(--font); font-weight: 700; font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); overflow-wrap: anywhere; }
body.pro .tagline { margin: 6px 0 0; font-family: var(--font); font-weight: 400; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); max-width: none; overflow-wrap: anywhere; }
body.pro .location { display: none; }
.sg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sg-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--sg-page); color: var(--ink-soft); font-size: 0.8rem; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; max-width: 100%; }
.sg-chip svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sg-chip b { color: var(--ink); font-weight: 650; }
.sg-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #98a2b3; flex: none; }
.sg-chip.is-open { background: color-mix(in srgb, #12b76a 14%, var(--surface)); color: #0f8a50; }
.sg-chip.is-open .dot { background: #12b76a; box-shadow: 0 0 0 0 rgba(18, 183, 106, .5); animation: sg-live 2s ease-out infinite; }
.sg-chip.is-closed { background: color-mix(in srgb, #f04438 11%, var(--surface)); color: #c4321f; }
.sg-chip.is-closed .dot { background: #f04438; }
body.pro[data-card-mode="dark"] .sg-chip.is-open { color: #4ade80; }
body.pro[data-card-mode="dark"] .sg-chip.is-closed { color: #ff8a80; }
.sg-chip.is-star svg { fill: #f5a623; stroke: #f5a623; }
@keyframes sg-live { 0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, .55); } 100% { box-shadow: 0 0 0 9px rgba(18, 183, 106, 0); } }

/* ---------- quick actions ---------- */
.sg-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 6px; padding: 18px 14px 6px; }
.sg-act { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 2px; border: 0; background: none; color: var(--ink); font: 600 0.74rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center; }
.sg-act i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sg-soft); color: var(--accent); transition: background .2s ease, color .2s ease, transform .22s var(--sg-ease), box-shadow .2s ease; }
.sg-act i svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sg-act:hover i { background: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 22px -10px color-mix(in srgb, var(--accent) 75%, transparent); }
.sg-act:active i { transform: scale(.93); }

/* ---------- details, exchange, socials ---------- */
body.pro .contacts { display: block; margin: 14px 16px 0; padding: 0; border: 1px solid var(--sg-line); border-radius: 18px; background: transparent; overflow: hidden; }
body.pro .contact-item { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; min-width: 0; transition: background .15s ease; }
body.pro .contact-item + .contact-item { border-top: 1px solid var(--sg-line); }
body.pro .contact-item:hover { background: var(--sg-page); }
body.pro .contact-item::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); opacity: .6; }
body.pro .icon-box { width: 38px; height: 38px; border-radius: 12px; flex: none; background: var(--sg-soft); color: var(--accent); border: 0; box-shadow: none; }
body.pro .icon-box svg { width: 18px; height: 18px; color: var(--accent); stroke: var(--accent); }
body.pro .contact-item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
body.pro .contact-item small { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
body.pro .contact-item strong { display: block; margin-top: 2px; font-weight: 550; font-size: 0.95rem; color: var(--ink); }
body.pro .add-contact-wrap { padding: 14px 16px 0; }
body.pro .add-contact-btn { min-height: 48px; border-radius: 14px; font: 650 0.95rem/1 var(--font); background: transparent; color: var(--ink); border: 1.5px solid var(--sg-line); box-shadow: none; }
body.pro .add-contact-btn:hover { border-color: var(--accent); color: var(--accent); filter: none; transform: translateY(-1px); }
body.pro .smart-connect-wrap { padding: 10px 16px 0; }
body.pro .smart-connect-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 0; border-radius: 16px; background: var(--sg-soft); color: var(--ink); box-shadow: none; filter: none; text-align: left; cursor: pointer; transition: transform .18s var(--sg-ease), background .18s ease; }
body.pro .smart-connect-btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 17%, var(--surface)); }
body.pro .sc-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; border: 0; flex: none; }
body.pro .sc-txt strong { display: block; font: 650 0.95rem/1.2 var(--font); color: var(--ink); }
body.pro .sc-txt small { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--ink-soft); }
body.pro .meta-row { justify-content: flex-start; padding: 16px 16px 20px; border: 0; background: transparent; }
body.pro .socials { display: flex; flex-wrap: wrap; gap: 8px; }
body.pro .socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--sg-line); background: transparent; color: var(--ink); box-shadow: none; transition: transform .18s var(--sg-ease), background .18s ease, color .18s ease, border-color .18s ease; }
body.pro .socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
body.pro .socials a.social-facebook { color: #1877f2; }
body.pro .socials a.social-facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }

/* ---------- section tabs: a flat white bar with an underline ---------- */
body.pro .section-nav { position: sticky; top: 0; z-index: 90; margin: 0; padding: 0; background: var(--surface); border: 0; border-bottom: 1px solid var(--sg-line); box-shadow: 0 2px 8px rgba(8, 12, 24, .04); backdrop-filter: none; }
body.pro .section-nav-toggle { display: none; }
body.pro .section-nav-menu, body.pro .section-nav-menu[hidden] { position: static !important; display: flex !important; gap: 0; overflow-x: auto; max-height: none; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; scrollbar-width: none; }
body.pro .section-nav-menu::-webkit-scrollbar { display: none; }
body.pro .section-nav-menu a { flex: 0 0 auto; display: block; padding: 14px 16px; border-radius: 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 500 0.85rem/1 var(--font); white-space: nowrap; transition: color .18s ease, border-color .18s ease; }
body.pro .section-nav-menu a:hover { background: none; color: var(--accent); }
body.pro .section-nav-menu a.is-active { background: none; color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ---------- sections: one continuous column, hairlines between, no floating boxes ---------- */
body.pro .page-sections { padding: 0; }
body.pro .content-section { margin: 0; padding: 28px 20px; background: var(--surface); border: 0; border-bottom: 1px solid var(--sg-line); border-radius: 0; box-shadow: none; scroll-margin-top: 50px; }
body.pro .content-section:nth-child(even) { background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
body.pro .content-section:last-child { border-bottom: 0; }
body.pro .content-section .section-head { padding: 0 0 16px; }
body.pro .content-section .section-head h2 { margin: 0; font: 700 1.12rem/1.25 var(--font); letter-spacing: -0.02em; color: var(--ink); }
body.pro .content-section .section-head p { margin: 3px 0 0; font-size: 0.82rem; color: var(--muted); }
body.pro .about-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
body.pro .about-lead { font-size: 0.95rem; line-height: 1.75; color: var(--ink-soft); }
body.pro .about-meta { margin-top: 14px; }
body.pro .about-meta li { padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 12px; background: var(--sg-soft); box-shadow: none; }

/* services & products: clean rows */
body.pro .item-cards { display: block; }
body.pro .item-card { display: flex; align-items: center; gap: 14px; padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid var(--sg-line); border-radius: 0; box-shadow: none; overflow: visible; transition: padding-left .2s ease; }
body.pro .item-card:first-child { padding-top: 0; }
body.pro .item-card:last-child { border-bottom: 0; padding-bottom: 0; }
body.pro .item-card:hover { padding-left: 4px; transform: none; box-shadow: none; border-color: var(--sg-line); }
body.pro .item-card img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--sg-page); }
body.pro .item-card-body { flex: 1; min-width: 0; padding: 0; }
body.pro .item-card h3 { margin: 0; font: 600 0.95rem/1.3 var(--font); letter-spacing: -0.01em; color: var(--ink); }
body.pro .item-card p { margin: 3px 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.pro .item-card .price { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
body.pro .item-card-foot { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
body.pro .btn-whatsapp-sm { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 14px; border-radius: 999px; background: transparent; color: var(--accent); border: 1.5px solid var(--accent); font: 600 0.75rem/1 var(--font); text-transform: none; letter-spacing: 0; box-shadow: none; transition: background .18s ease, color .18s ease; }
body.pro .btn-whatsapp-sm:hover { background: var(--accent); color: #fff; }

/* boxed pieces that are complete on their own keep a light border */
body.pro .review-card, body.pro .award-card, body.pro .fb-page-card, body.pro .ig-profile-card, body.pro .fb-post, body.pro .payment-box, body.pro .enquiry-cta, body.pro .appt-wizard, body.pro .reviews-hero, body.pro .map-frame, body.pro .video-frame { background: var(--surface); border: 1px solid var(--sg-line); border-radius: 14px; box-shadow: none; overflow: hidden; }
body.pro .enquiry-cta, body.pro .payment-box, body.pro .appt-wizard { overflow: visible; }
body.pro .faq-list { display: block; }
body.pro .faq-item { padding: 0; background: transparent; border: 0; border-bottom: 1px solid var(--sg-line); border-radius: 0; box-shadow: none; overflow: visible; }
body.pro .faq-item:last-child { border-bottom: 0; }
body.pro .faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; font: 500 0.92rem/1.45 var(--font); color: var(--ink); cursor: pointer; transition: color .15s ease; }
body.pro .faq-item summary:hover { color: var(--accent); }
body.pro .faq-item summary::after { content: "+"; flex: none; font: 400 1.4rem/1 var(--font); color: var(--accent); transition: transform .2s ease; }
body.pro .faq-item[open] summary::after { transform: rotate(45deg); }
body.pro .faq-item p, body.pro .faq-item > div { padding-bottom: 16px; line-height: 1.7; color: var(--ink-soft); font-size: 0.9rem; }
body.pro .reviews-panel { display: grid; gap: 12px; }
body.pro .reviews-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; text-decoration: none; }
body.pro .reviews-score strong { font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
body.pro .reviews-score .stars, body.pro .review-card .stars { color: #f5a623; }
body.pro .reviews-list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 10px; scrollbar-width: none; }
body.pro .reviews-list::-webkit-scrollbar { display: none; }
body.pro .review-card { flex: 0 0 82%; scroll-snap-align: start; padding: 16px; }
body.pro .awards-grid { display: grid; gap: 12px; }
body.pro .award-card { display: flex; }
body.pro .award-media { flex: 0 0 88px; position: relative; min-height: 88px; }
body.pro .award-media img { width: 100%; height: 100%; object-fit: cover; }
body.pro .award-body { flex: 1; min-width: 0; padding: 14px; }
body.pro .gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.pro .gallery-item, body.pro .gallery-grid.in-chat .gallery-item:nth-child(1) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; border-radius: 12px; border: 0; padding: 0; overflow: hidden; background: var(--sg-page); }
body.pro .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
body.pro .gallery-item:hover img { transform: scale(1.04); }
body.pro .btn-outline, body.pro .btn-google, body.pro .enquiry-btn-wa { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: 10px; border: 1.5px solid var(--sg-line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 0.88rem/1 var(--font); text-decoration: none; box-shadow: none; transition: border-color .18s ease, background .18s ease, color .18s ease; }
body.pro .btn-outline:hover, body.pro .btn-google:hover, body.pro .enquiry-btn-wa:hover { border-color: var(--accent); background: var(--sg-soft); color: var(--accent); }
body.pro .enquiry-btn-primary, body.pro .appt-next, body.pro .appt-start-btn, body.pro .appt-confirm { min-height: 48px; border-radius: 12px; background: var(--accent); color: #fff; border: 0; font: 600 0.9rem/1 var(--font); box-shadow: none; transition: filter .18s ease, transform .15s ease; }
body.pro .enquiry-btn-primary:hover, body.pro .appt-next:hover, body.pro .appt-start-btn:hover, body.pro .appt-confirm:hover { filter: brightness(1.07); transform: translateY(-1px); }
body.pro .enquiry-actions { display: grid; grid-template-columns: 1fr; gap: 0; }
body.pro .enquiry-cta { padding: 18px; }
body.pro .map-frame { aspect-ratio: 4 / 3; }
body.pro .map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- bottom bar: Call and WhatsApp, attached to the bottom edge of the column ---------- */
body.pro .fixed-cta { position: fixed; left: 50%; bottom: 0; top: auto; width: min(100%, 460px); margin: 0; padding: 0 0 env(safe-area-inset-bottom); display: flex; gap: 0; transform: translateX(-50%); background: var(--surface); border: 0; border-top: 1px solid var(--sg-line); border-radius: 0; box-shadow: 0 -4px 20px rgba(8, 12, 24, .06); z-index: 200; overflow: visible; animation: none !important; transition: none; pointer-events: auto; }
body.pro .fixed-cta-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 60px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font: 600 0.72rem/1 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink-soft); transition: background .18s ease; }
body.pro .fixed-cta-btn + .fixed-cta-btn { border-left: 1px solid var(--sg-line); }
body.pro .fixed-cta-btn svg { width: 20px; height: 20px; }
body.pro .fixed-cta-call { color: var(--accent); background: none; }
body.pro .fixed-cta-wa { color: #16a34a; background: none; }
body.pro .fixed-cta-share, body.pro .fixed-cta-language, body.pro .fixed-cta-enquiry { color: var(--ink-soft); background: none; }
body.pro[data-card-mode="dark"] .fixed-cta-wa { color: #4ade80; }
body.pro .fixed-cta-btn:hover { background: var(--sg-page); filter: none; }
body.pro .fixed-cta-btn:active { transform: none; background: color-mix(in srgb, var(--ink) 8%, transparent); }
body.pro .card:has(.fixed-cta) .card-chat-dock { bottom: calc(76px + env(safe-area-inset-bottom)); }

/* ---------- intro: a short brand reveal on the first open of a session ---------- */
.sg-splash { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: var(--surface, #fff); color: var(--ink, #111); animation: sg-splash-out .55s cubic-bezier(.7, 0, .3, 1) 1.55s forwards; }
.sg-splash::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 42%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%); opacity: 0; animation: sg-fade .9s ease .1s forwards; }
.sg-splash-in { position: relative; display: grid; justify-items: center; gap: 18px; padding: 24px; text-align: center; }
.sg-splash img { width: 92px; height: 92px; padding: 14px; border-radius: 26px; background: #fff; object-fit: contain; box-shadow: 0 0 0 1px var(--sg-line, rgba(0,0,0,.08)), 0 24px 44px -20px rgba(8, 12, 24, .4); opacity: 0; transform: scale(.7); animation: sg-pop .7s cubic-bezier(.2, .9, .3, 1.15) .1s forwards; }
.sg-splash b { display: block; font: 700 1.35rem/1.2 var(--font, system-ui); letter-spacing: -0.02em; max-width: 280px; opacity: 0; transform: translateY(10px); animation: sg-up .6s var(--sg-ease, ease) .45s forwards; }
.sg-splash small { display: block; margin-top: -8px; font: 500 0.88rem/1.3 var(--font, system-ui); color: var(--ink-soft, #667085); max-width: 280px; opacity: 0; animation: sg-up .6s ease .6s forwards; }
.sg-splash i { display: block; width: 120px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink, #111) 10%, transparent); overflow: hidden; }
.sg-splash i::after { content: ""; display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: sg-bar 1.25s cubic-bezier(.5, 0, .2, 1) .25s forwards; }
@keyframes sg-pop { to { opacity: 1; transform: none; } }
@keyframes sg-up { to { opacity: 1; transform: none; } }
@keyframes sg-fade { to { opacity: 1; } }
@keyframes sg-bar { to { transform: scaleX(1); } }
@keyframes sg-splash-out { to { opacity: 0; visibility: hidden; transform: translateY(-14px); } }
html.sg-skip-splash .sg-splash { display: none; }
body.is-embed .sg-splash { display: none; }

/* ---------- entrance: the card builds in after the intro ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.vp-motion body.pro .card-hero { animation: vp-fade .6s ease both; }
  html.vp-motion body.pro .identity > * { animation: vp-rise .6s var(--sg-ease) both; }
  html.vp-motion body.pro .identity .brand { animation-delay: .08s; }
  html.vp-motion body.pro .identity .tagline { animation-delay: .14s; }
  html.vp-motion body.pro .sg-meta { animation-delay: .2s; }
  html.vp-motion body.pro .sg-actions .sg-act { animation: vp-rise .55s var(--sg-ease) both; }
  html.vp-motion body.pro .sg-actions .sg-act:nth-child(1) { animation-delay: .24s; }
  html.vp-motion body.pro .sg-actions .sg-act:nth-child(2) { animation-delay: .3s; }
  html.vp-motion body.pro .sg-actions .sg-act:nth-child(3) { animation-delay: .36s; }
  html.vp-motion body.pro .sg-actions .sg-act:nth-child(4) { animation-delay: .42s; }
  html.vp-motion body.pro .sg-actions .sg-act:nth-child(n+5) { animation-delay: .48s; }
  html.vp-motion body.pro .contacts .contact-item, html.vp-motion body.pro .add-contact-wrap, html.vp-motion body.pro .smart-connect-wrap { animation: vp-rise .55s var(--sg-ease) .5s both; }
  html.vp-motion body.pro .profile-wrap { animation: vp-pop .7s cubic-bezier(.2, .9, .3, 1.15) .1s both; }
  html.vp-motion body.pro .section-nav { animation: none; }
}

@media (max-width: 360px) {
  body.pro .item-cards { grid-template-columns: 1fr; }
  body.pro .brand { font-size: 1.4rem; }
  .sg-save .sg-btn { padding: 0 14px; }
}

/* "Save contact" in the profile header is the main action, so the extra Add contact button is not needed here */
body.pro .add-contact-wrap { display: none; }
@media (max-width: 360px) {
  .sg-actions { grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); padding: 16px 8px 4px; gap: 2px; }
  .sg-act { font-size: 0.68rem; }
  .sg-act i { width: 46px; height: 46px; }
  .sg-act i svg { width: 20px; height: 20px; }
}

/* flatter details list, and tabs that start at the left edge */
body.pro .section-nav { display: block; justify-content: flex-start; }
body.pro .section-nav-shell { width: 100%; }
body.pro .contacts { margin: 6px 0 0; padding: 0 12px; border: 0; border-radius: 0; background: transparent; overflow: visible; }
body.pro .contact-item { border-radius: 10px; padding: 12px 8px; }
body.pro .contact-item + .contact-item { border-top: 1px solid var(--sg-line); }
body.pro .enquiry-cta { padding: 0; border: 0; background: transparent; border-radius: 0; }

/* =====================================================================
   Shared adjustments for every professional template
   ===================================================================== */
body.pro .sg-top { display: grid; grid-template-columns: minmax(0, 1fr); }
body.pro .sg-top > * { grid-column: 1; min-width: 0; }
body.pro .card-hero { order: 0; }
body.pro .identity { order: 1; }
body.pro .sg-actions { order: 2; }
body.pro .smart-connect-wrap { order: 3; }
body.pro .contacts { order: 4; }
body.pro .meta-row { order: 5; }
body.pro .sg-save { display: none; }

/* Smart Connect is the main way to exchange details, so it is the strongest block of the header */
body.pro .smart-connect-wrap { display: block; padding: 8px 16px 0; }
body.pro .smart-connect-btn { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: 16px; background: var(--accent); color: #fff; box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--accent) 80%, transparent); text-align: left; cursor: pointer; transition: transform .18s var(--sg-ease), box-shadow .2s ease, filter .18s ease; }
body.pro .smart-connect-btn::before { content: ""; order: 3; flex: none; margin-left: auto; width: 9px; height: 9px; border-top: 2.5px solid rgba(255, 255, 255, .85); border-right: 2.5px solid rgba(255, 255, 255, .85); transform: rotate(45deg); background: none; opacity: 1; }
body.pro .smart-connect-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 22px 36px -16px color-mix(in srgb, var(--accent) 85%, transparent); background: var(--accent); }
body.pro .sc-ico { width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, .2); color: #fff; border: 0; }
body.pro .sc-txt strong { font: 700 1.05rem/1.2 var(--font); color: #fff; }
body.pro .sc-txt small { margin-top: 3px; font-size: 0.82rem; color: rgba(255, 255, 255, .88); }
body.pro .sg-act.is-save i { background: var(--accent); color: #fff; }
body.pro .sg-act.is-save:hover i { filter: brightness(1.1); }

/* =====================================================================
   PURE: centred and quiet
   ===================================================================== */
body[data-template="pure"] .card-hero { height: 150px; background: var(--sg-soft); }
body[data-template="pure"] .cover::after { background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 60%); }
body[data-template="pure"] .hero-bottom { left: 0; right: 0; }
body[data-template="pure"] .profile-wrap { left: calc(50% - 52px); bottom: -52px; width: 104px; height: 104px; border-radius: 50%; }
body[data-template="pure"] .profile { width: 104px; height: 104px; border-radius: 50%; padding: 3px; }
body[data-template="pure"] .identity { text-align: center; padding: 66px 22px 4px; }
body[data-template="pure"] .sg-meta, body[data-template="pure"] .sg-actions { justify-content: center; }
body[data-template="pure"] .brand { font-size: 1.65rem; font-weight: 650; }
body[data-template="pure"] .smart-connect-btn { background: var(--ink); color: var(--surface); box-shadow: none; }
body[data-template="pure"] .smart-connect-btn:hover { background: var(--ink); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .5); }
body[data-template="pure"] .sc-txt strong { color: var(--surface); }
body[data-template="pure"] .sc-txt small { color: color-mix(in srgb, var(--surface) 75%, transparent); }
body[data-template="pure"] .smart-connect-btn::before { border-color: var(--surface); }
body[data-template="pure"] .sg-act.is-save i { background: var(--ink); color: var(--surface); }
body[data-template="pure"] .section-nav-menu { justify-content: center; padding: 8px 12px; gap: 6px; }
body[data-template="pure"] .section-nav-menu a { padding: 9px 15px; border-radius: 999px; border-bottom: 0; background: var(--sg-page); color: var(--ink-soft); }
body[data-template="pure"] .section-nav-menu a.is-active { background: var(--ink); color: var(--surface); }
body[data-template="pure"] .content-section .section-head { text-align: center; }
body[data-template="pure"] .fixed-cta-call { color: var(--ink); }

/* =====================================================================
   STUDIO: left aligned, typographic, no cover
   ===================================================================== */
body[data-template="studio"] .card-hero { height: auto; min-height: 0; background: transparent; overflow: visible; padding: 22px 20px 0; }
body[data-template="studio"] .cover { display: none; }
body[data-template="studio"] .hero-bottom { position: static; display: block; height: auto; padding: 0; }
body[data-template="studio"] .profile-wrap { position: static; width: 76px; height: 76px; border-radius: 50%; box-shadow: 0 0 0 1px var(--sg-line); }
body[data-template="studio"] .profile { width: 76px; height: 76px; border-radius: 50%; padding: 3px; }
body[data-template="studio"] .sg-hero-btns { top: 22px; right: 20px; }
body[data-template="studio"] .sg-glass { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--sg-line); backdrop-filter: none; }
body[data-template="studio"] .sg-glass:hover { background: var(--sg-page); }
body[data-template="studio"] .identity { padding: 16px 20px 0; }
body[data-template="studio"] .brand { font-size: 1.85rem; font-weight: 650; }
body[data-template="studio"] .sg-act i { border-radius: 16px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--sg-line); color: var(--ink); }
body[data-template="studio"] .sg-act:hover i { background: var(--ink); color: var(--surface); box-shadow: none; }
body[data-template="studio"] .sg-act.is-save i { background: var(--accent); color: #fff; box-shadow: none; }
body[data-template="studio"] .smart-connect-btn { border-radius: 14px; }

/* =====================================================================
   PORTRAIT: a big photo, the name written over it
   ===================================================================== */
body[data-template="portrait"] .card-hero { grid-row: 1; height: auto; min-height: 430px; background: #0d1117; }
body[data-template="portrait"] .cover::after { background: linear-gradient(180deg, rgba(8, 12, 24, .30) 0%, rgba(8, 12, 24, 0) 28%, rgba(8, 12, 24, .55) 62%, rgba(8, 12, 24, .92) 100%); }
body[data-template="portrait"] .hero-bottom { left: 0; right: 0; bottom: auto; top: 0; }
body[data-template="portrait"] .profile-wrap { left: 16px; top: 16px; bottom: auto; width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
body[data-template="portrait"] .profile { width: 56px; height: 56px; border-radius: 16px; padding: 3px; }
body[data-template="portrait"] .sg-hero-btns { top: 16px; right: 16px; }
body[data-template="portrait"] .identity { grid-row: 1; align-self: end; z-index: 5; order: 0; padding: 0 20px 24px; background: transparent; }
body[data-template="portrait"] .brand { color: #fff; font-size: 2rem; font-weight: 700; letter-spacing: -0.035em; }
body[data-template="portrait"] .tagline { color: rgba(255, 255, 255, .86); font-size: 1.02rem; }
body[data-template="portrait"] .sg-chip { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body[data-template="portrait"] .sg-chip b { color: #fff; }
body[data-template="portrait"] .sg-chip.is-open { background: rgba(18, 183, 106, .3); color: #7af0b5; }
body[data-template="portrait"] .sg-chip.is-closed { background: rgba(240, 68, 56, .3); color: #ffb4ad; }
body[data-template="portrait"] .sg-actions { padding-top: 20px; }

/* =====================================================================
   EDITORIAL: serif, ruled, square, numbered
   ===================================================================== */
body[data-template="editorial"] { --pr-serif: "Fraunces", "DM Serif Display", Georgia, "Times New Roman", serif; }
body[data-template="editorial"] .card-hero { height: 230px; }
body[data-template="editorial"] .cover { filter: grayscale(1) contrast(1.05); }
body[data-template="editorial"] .cover::after { background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .35)); }
body[data-template="editorial"] .profile-wrap { left: 20px; bottom: -42px; width: 88px; height: 88px; border-radius: 0; box-shadow: 0 0 0 1px var(--ink); }
body[data-template="editorial"] .profile { width: 88px; height: 88px; border-radius: 0; padding: 3px; }
body[data-template="editorial"] .sg-glass { border-radius: 0; }
body[data-template="editorial"] .identity { padding: 58px 20px 6px; }
body[data-template="editorial"] .brand { font-family: var(--pr-serif); font-weight: 600; font-size: 2.45rem; line-height: 1; letter-spacing: -0.035em; }
body[data-template="editorial"] .tagline { margin-top: 10px; font-family: var(--pr-serif); font-style: italic; font-size: 1.12rem; color: var(--ink-soft); }
body[data-template="editorial"] .sg-chip { height: 28px; padding: 0 10px; border-radius: 0; background: transparent; border: 1px solid var(--ink); color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; font-weight: 600; }
body[data-template="editorial"] .sg-chip.is-open { border-color: #12b76a; color: #0f8a50; background: transparent; }
body[data-template="editorial"] .sg-chip.is-closed { border-color: #f04438; color: #c4321f; background: transparent; }
body[data-template="editorial"] .sg-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 18px 20px 0; padding: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
body[data-template="editorial"] .sg-act { gap: 6px; padding: 14px 2px; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
body[data-template="editorial"] .sg-act + .sg-act { border-left: 1px solid var(--sg-line); }
body[data-template="editorial"] .sg-act i { width: auto; height: auto; background: none; border-radius: 0; color: var(--ink); }
body[data-template="editorial"] .sg-act:hover i, body[data-template="editorial"] .sg-act.is-save:hover i { background: none; color: var(--accent); box-shadow: none; transform: translateY(-2px); }
body[data-template="editorial"] .sg-act.is-save i { background: none; color: var(--accent); }
body[data-template="editorial"] .smart-connect-btn { border-radius: 0; background: var(--ink); box-shadow: none; }
body[data-template="editorial"] .smart-connect-btn:hover { background: var(--ink); }
body[data-template="editorial"] .sc-ico { border-radius: 0; background: var(--accent); }
body[data-template="editorial"] .sc-txt strong { font-family: var(--pr-serif); font-weight: 600; font-size: 1.2rem; color: var(--surface); }
body[data-template="editorial"] .sc-txt small { color: color-mix(in srgb, var(--surface) 78%, transparent); }
body[data-template="editorial"] .contacts { margin: 14px 0 0; }
body[data-template="editorial"] .contact-item { border-radius: 0; }
body[data-template="editorial"] .icon-box { border-radius: 0; background: transparent; }
body[data-template="editorial"] .socials a { border-radius: 0; }
body[data-template="editorial"] .section-nav-menu a { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; font-weight: 600; color: var(--muted); }
body[data-template="editorial"] .section-nav-menu a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
body[data-template="editorial"] .page-sections { counter-reset: sec; }
body[data-template="editorial"] .content-section { counter-increment: sec; }
body[data-template="editorial"] .content-section .section-head h2 { font-family: var(--pr-serif); font-weight: 600; font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1.05; }
body[data-template="editorial"] .content-section .section-head h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 8px; font: 700 0.7rem/1 var(--font); letter-spacing: 0.2em; color: var(--accent); }
body[data-template="editorial"] .content-section .section-head p { font-family: var(--pr-serif); font-style: italic; font-size: 0.95rem; color: var(--ink-soft); }
body[data-template="editorial"] .item-card img, body[data-template="editorial"] .gallery-item { border-radius: 0; filter: grayscale(1); }
body[data-template="editorial"] .item-card:hover img, body[data-template="editorial"] .gallery-item:hover { filter: none; }
body[data-template="editorial"] .btn-whatsapp-sm, body[data-template="editorial"] .enquiry-btn-primary, body[data-template="editorial"] .btn-outline, body[data-template="editorial"] .about-meta li, body[data-template="editorial"] .reviews-hero, body[data-template="editorial"] .review-card, body[data-template="editorial"] .award-card, body[data-template="editorial"] .payment-box, body[data-template="editorial"] .appt-wizard, body[data-template="editorial"] .map-frame { border-radius: 0; }
body[data-template="editorial"] .fixed-cta-call { color: var(--ink); }

/* =====================================================================
   BANNER PRO: a profile banner, round photo, action tiles
   ===================================================================== */
body[data-template="banner-pro"] .card-hero { height: 156px; }
body[data-template="banner-pro"] .profile-wrap { left: 20px; bottom: -42px; width: 88px; height: 88px; border-radius: 50%; }
body[data-template="banner-pro"] .profile { width: 88px; height: 88px; border-radius: 50%; padding: 3px; }
body[data-template="banner-pro"] .identity { padding: 56px 20px 4px; }
body[data-template="banner-pro"] .sg-actions { grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 16px 16px 4px; }
body[data-template="banner-pro"] .sg-act { gap: 6px; padding: 12px 2px 10px; border: 1px solid var(--sg-line); border-radius: 14px; background: var(--surface); font-size: 0.68rem; transition: border-color .18s ease, background .18s ease, transform .18s var(--sg-ease); }
body[data-template="banner-pro"] .sg-act i { width: auto; height: auto; background: none; color: var(--accent); }
body[data-template="banner-pro"] .sg-act:hover { border-color: var(--accent); background: var(--sg-soft); transform: translateY(-2px); }
body[data-template="banner-pro"] .sg-act:hover i, body[data-template="banner-pro"] .sg-act.is-save:hover i { background: none; color: var(--accent); box-shadow: none; transform: none; }
body[data-template="banner-pro"] .sg-act.is-save { background: var(--accent); border-color: var(--accent); color: #fff; }
body[data-template="banner-pro"] .sg-act.is-save i { background: none; color: #fff; }
body[data-template="banner-pro"] .smart-connect-btn { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #6d28d9)); }
body[data-template="banner-pro"] .section-nav-menu { padding: 8px 12px; gap: 6px; }
body[data-template="banner-pro"] .section-nav-menu a { padding: 9px 15px; border-radius: 999px; border-bottom: 0; background: var(--sg-page); }
body[data-template="banner-pro"] .section-nav-menu a.is-active { background: var(--accent); color: #fff; }

/* =====================================================================
   STRIPE: four-colour spine, black display caps, mono labels
   ===================================================================== */
body[data-template="stripe"] { --pr-mono: "Space Mono", "Courier New", monospace; --pr-black: "Archivo Black", "Arial Black", Impact, sans-serif; --pr-a2: color-mix(in srgb, var(--accent) 68%, #000); }
body[data-template="stripe"] .card { padding-left: 30px; }
body[data-template="stripe"] .card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 30px; z-index: 2; background: linear-gradient(90deg, var(--ink) 0 25%, var(--accent) 25% 50%, #ffd60a 50% 75%, var(--pr-a2) 75% 100%); }
@media (prefers-reduced-motion: no-preference) { html.vp-motion body[data-template="stripe"] .card::before { transform-origin: top; animation: vp-grow 1.1s cubic-bezier(.7, 0, .2, 1) both; } }
body[data-template="stripe"] .card-hero { height: 176px; }
body[data-template="stripe"] .cover::after { background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .3)); }
body[data-template="stripe"] .profile-wrap { left: 18px; bottom: -40px; width: 84px; height: 84px; border-radius: 0; box-shadow: 0 0 0 3px var(--ink); }
body[data-template="stripe"] .profile { width: 84px; height: 84px; border-radius: 0; padding: 3px; }
body[data-template="stripe"] .sg-glass { border-radius: 0; }
body[data-template="stripe"] .identity { padding: 54px 18px 4px; }
body[data-template="stripe"] .brand { font-family: var(--pr-black); font-weight: 400; text-transform: uppercase; font-size: 2.1rem; line-height: 0.95; letter-spacing: -0.02em; }
body[data-template="stripe"] .tagline { margin-top: 10px; font-family: var(--pr-mono); font-size: 0.82rem; letter-spacing: 0.02em; color: var(--accent); }
body[data-template="stripe"] .sg-chip { height: 28px; border-radius: 0; background: transparent; border: 2px solid var(--ink); color: var(--ink); font-family: var(--pr-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }
body[data-template="stripe"] .sg-chip.is-open { border-color: #12b76a; color: #0f8a50; background: transparent; }
body[data-template="stripe"] .sg-chip.is-closed { border-color: #f04438; color: #c4321f; background: transparent; }
body[data-template="stripe"] .sg-actions { gap: 4px; padding: 18px 12px 4px; }
body[data-template="stripe"] .sg-act { font-family: var(--pr-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; }
body[data-template="stripe"] .sg-act i { width: 52px; height: 52px; border-radius: 0; background: transparent; box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
body[data-template="stripe"] .sg-act:hover i { background: var(--ink); color: var(--surface); box-shadow: none; transform: translate(-2px, -2px); }
body[data-template="stripe"] .sg-act.is-save i { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
body[data-template="stripe"] .smart-connect-btn { border-radius: 0; background: var(--ink); box-shadow: none; border-right: 12px solid var(--accent); }
body[data-template="stripe"] .smart-connect-btn:hover { background: var(--ink); }
body[data-template="stripe"] .sc-ico { border-radius: 0; background: var(--accent); }
body[data-template="stripe"] .sc-txt strong { font-family: var(--pr-black); font-weight: 400; text-transform: uppercase; color: var(--surface); }
body[data-template="stripe"] .sc-txt small { font-family: var(--pr-mono); font-size: 0.7rem; color: color-mix(in srgb, var(--surface) 78%, transparent); }
body[data-template="stripe"] .icon-box, body[data-template="stripe"] .contact-item, body[data-template="stripe"] .socials a { border-radius: 0; }
body[data-template="stripe"] .contact-item small { font-family: var(--pr-mono); }
body[data-template="stripe"] .section-nav-menu a { font-family: var(--pr-mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); }
body[data-template="stripe"] .section-nav-menu a.is-active { background: var(--ink); color: var(--surface); border-bottom-color: var(--ink); }
body[data-template="stripe"] .content-section .section-head h2 { font-family: var(--pr-black); font-weight: 400; text-transform: uppercase; font-size: 1.4rem; letter-spacing: -0.01em; }
body[data-template="stripe"] .content-section .section-head h2::before { content: "// "; font-family: var(--pr-mono); font-size: 0.9rem; color: var(--accent); }
body[data-template="stripe"] .content-section .section-head p { font-family: var(--pr-mono); font-size: 0.74rem; }
body[data-template="stripe"] .item-card img, body[data-template="stripe"] .gallery-item { border-radius: 0; }
body[data-template="stripe"] .btn-whatsapp-sm, body[data-template="stripe"] .enquiry-btn-primary, body[data-template="stripe"] .btn-outline, body[data-template="stripe"] .about-meta li, body[data-template="stripe"] .reviews-hero, body[data-template="stripe"] .review-card, body[data-template="stripe"] .award-card, body[data-template="stripe"] .payment-box, body[data-template="stripe"] .appt-wizard, body[data-template="stripe"] .map-frame { border-radius: 0; }
body[data-template="stripe"] .fixed-cta { margin-left: 0; }
body[data-template="stripe"] .fixed-cta-btn { font-family: var(--pr-mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.66rem; }
body[data-template="stripe"] .fixed-cta-call { color: var(--ink); }

/* =====================================================================
   LETTER: letterhead with a double rule
   ===================================================================== */
body[data-template="letter"] .card-hero { height: auto; min-height: 0; background: transparent; overflow: visible; padding: 24px 20px 0; }
body[data-template="letter"] .cover { display: none; }
body[data-template="letter"] .hero-bottom { position: static; display: block; height: auto; padding: 0; }
body[data-template="letter"] .profile-wrap { position: static; width: auto; height: 56px; max-width: 170px; border-radius: 0; background: transparent; box-shadow: none; }
body[data-template="letter"] .profile { width: auto; max-width: 170px; height: 56px; border-radius: 0; padding: 0; background: transparent; }
body[data-template="letter"] .sg-hero-btns { top: 24px; right: 20px; }
body[data-template="letter"] .sg-glass { background: transparent; color: var(--ink); border-radius: 0; box-shadow: inset 0 0 0 1px var(--ink); backdrop-filter: none; }
body[data-template="letter"] .identity { padding: 18px 20px 0; }
body[data-template="letter"] .brand { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
body[data-template="letter"] .tagline { margin-top: 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
body[data-template="letter"] .sg-meta { margin-top: 12px; gap: 14px; }
body[data-template="letter"] .sg-chip { height: auto; padding: 0; background: transparent; border-radius: 0; font-size: 0.8rem; }
body[data-template="letter"] .sg-chip.is-open, body[data-template="letter"] .sg-chip.is-closed { background: transparent; }
body[data-template="letter"] .identity::after { content: ""; display: block; margin-top: 18px; height: 5px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
@media (prefers-reduced-motion: no-preference) { html.vp-motion body[data-template="letter"] .identity::after { transform-origin: left; animation: vp-draw .9s cubic-bezier(.7, 0, .2, 1) .5s both; } }
body[data-template="letter"] .sg-actions { padding: 14px 14px 0; }
body[data-template="letter"] .sg-act i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
body[data-template="letter"] .sg-act:hover i { background: var(--accent); color: #fff; box-shadow: none; }
body[data-template="letter"] .sg-act.is-save i { background: var(--accent); color: #fff; }
body[data-template="letter"] .smart-connect-btn { border-radius: 4px; box-shadow: none; }
body[data-template="letter"] .icon-box { background: transparent; }
body[data-template="letter"] .section-nav-menu a { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
body[data-template="letter"] .content-section { border-top: 6px double var(--ink); border-bottom: 0; }
body[data-template="letter"] .content-section .section-head h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.025em; }
body[data-template="letter"] .content-section .section-head p { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
body[data-template="letter"] .fixed-cta { border-top: 6px double var(--ink); }

/* =====================================================================
   LIVE: a moving colour-mesh header and a photo ring that turns
   ===================================================================== */
body[data-template="live"] { --lv2: color-mix(in srgb, var(--accent) 45%, #7dd3fc); --lv3: color-mix(in srgb, var(--accent) 40%, #f0abfc); }
body[data-template="live"] .card-hero { height: 190px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); overflow: visible; }
body[data-template="live"] .cover { background-image: none !important; background-color: transparent; overflow: hidden; animation: none !important; }
body[data-template="live"] .cover::before { content: ""; display: block; position: absolute; width: 85%; height: 150%; left: -15%; top: -40%; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 68%); opacity: .55; filter: blur(8px); animation: vp-drift-a 11s ease-in-out infinite; }
body[data-template="live"] .cover::after { content: ""; display: block; position: absolute; width: 80%; height: 150%; right: -20%; top: -30%; border-radius: 50%; background: radial-gradient(circle, var(--lv3) 0%, transparent 68%); opacity: .6; filter: blur(10px); animation: vp-drift-b 13s ease-in-out infinite; inset: auto; }
body[data-template="live"] .profile-wrap { left: calc(50% - 56px); bottom: -56px; width: 112px; height: 112px; border-radius: 50%; background: transparent; box-shadow: none; }
body[data-template="live"] .profile-wrap::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(var(--accent), var(--lv2), var(--lv3), var(--accent)); animation: vp-spin 7s linear infinite; }
body[data-template="live"] .profile { position: relative; width: 112px; height: 112px; border-radius: 50%; padding: 3px; border: 4px solid var(--surface); box-shadow: none; }
body[data-template="live"] .identity { text-align: center; padding: 72px 22px 4px; }
body[data-template="live"] .sg-meta, body[data-template="live"] .sg-actions { justify-content: center; }
body[data-template="live"] .sg-act i, body[data-template="live"] .sg-act.is-save i { background: linear-gradient(135deg, var(--accent), var(--lv2)); color: #fff; }
body[data-template="live"] .smart-connect-btn { background: linear-gradient(110deg, var(--accent), var(--lv3), var(--accent)); background-size: 200% 100%; animation: sg-gradient 6s ease-in-out infinite alternate; }
@keyframes sg-gradient { to { background-position: 100% 0; } }
body[data-template="live"] .section-nav-menu { padding: 8px 12px; gap: 6px; }
body[data-template="live"] .section-nav-menu a { padding: 9px 15px; border-radius: 999px; border-bottom: 0; background: var(--sg-page); }
body[data-template="live"] .section-nav-menu a.is-active { background: var(--accent); color: #fff; }

/* =====================================================================
   MIDNIGHT: dark glass, a light travelling round the edge
   ===================================================================== */
body[data-template="midnight"] { --surface: #0e1219; --surface-2: #151a24; --ink: #f4f6fb; --ink-soft: #b9c0cd; --muted: #8a93a4; --line: rgba(255, 255, 255, .10); --sg-page: #05070b; --sg-line: rgba(255, 255, 255, .10); --sg-soft: color-mix(in srgb, var(--accent) 22%, transparent); --wood-deep: #f4f6fb; background: #05070b; }
body[data-template="midnight"] .card { background: #0e1219; }
body[data-template="midnight"] .sg-top, body[data-template="midnight"] .content-section { background: #0e1219; }
body[data-template="midnight"] .content-section:nth-child(even) { background: #111620; }
body[data-template="midnight"] .card-hero { height: 190px; background: #0e1219; overflow: visible; }
body[data-template="midnight"] .cover { background-image: none !important; background-color: transparent; overflow: hidden; animation: none !important; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
body[data-template="midnight"] .cover::before { content: ""; display: block; position: absolute; width: 90%; height: 160%; left: 5%; top: -70%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 75%, transparent) 0%, transparent 65%); opacity: .6; filter: blur(14px); animation: vp-drift-a 12s ease-in-out infinite; }
body[data-template="midnight"] .cover::after { display: none; }
body[data-template="midnight"] .profile-wrap { left: calc(50% - 56px); bottom: -56px; width: 112px; height: 112px; border-radius: 50%; background: transparent; box-shadow: none; }
body[data-template="midnight"] .profile-wrap::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, var(--accent) 80%, transparent 100%); animation: vp-spin 4.5s linear infinite; }
body[data-template="midnight"] .profile { position: relative; width: 112px; height: 112px; border-radius: 50%; padding: 3px; border: 4px solid #0e1219; box-shadow: none; }
body[data-template="midnight"] .identity { text-align: center; padding: 72px 22px 4px; }
body[data-template="midnight"] .sg-meta, body[data-template="midnight"] .sg-actions { justify-content: center; }
body[data-template="midnight"] .sg-chip { background: rgba(255, 255, 255, .07); color: var(--ink-soft); }
body[data-template="midnight"] .sg-act i { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: color-mix(in srgb, var(--accent) 55%, #fff); }
body[data-template="midnight"] .sg-act:hover i { background: var(--accent); color: #fff; box-shadow: none; }
body[data-template="midnight"] .sg-act.is-save i { background: var(--accent); color: #fff; box-shadow: none; }
body[data-template="midnight"] .smart-connect-btn { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #d946ef)); box-shadow: 0 18px 36px -16px color-mix(in srgb, var(--accent) 90%, transparent); }
body[data-template="midnight"] .contact-item:hover { background: rgba(255, 255, 255, .04); }
body[data-template="midnight"] .section-nav { background: #0e1219; }
body[data-template="midnight"] .section-nav-menu a { color: var(--muted); }
body[data-template="midnight"] .fixed-cta { background: rgba(14, 18, 25, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body[data-template="midnight"] .fixed-cta-wa { color: #4ade80; }
body[data-template="midnight"] .sg-hero-btns .sg-glass { background: rgba(255, 255, 255, .1); }

/* very narrow phones */
@media (max-width: 360px) {
  body[data-template="banner-pro"] .sg-act { font-size: 0.62rem; }
  body[data-template="editorial"] .brand { font-size: 2rem; }
  body[data-template="stripe"] .brand { font-size: 1.7rem; }
  body[data-template="portrait"] .brand { font-size: 1.7rem; }
}

/* touch-ups */
body[data-template="pure"] .section-nav-menu, body[data-template="live"] .section-nav-menu, body[data-template="banner-pro"] .section-nav-menu { justify-content: flex-start; }
body.pro .smart-connect-wrap { padding-bottom: 8px; }
body[data-template="letter"] .profile-wrap { height: 60px; max-width: 200px; }
body[data-template="letter"] .profile { width: 190px; max-width: 100%; height: 60px; object-fit: contain; object-position: left center; }
body[data-template="pure"] .sc-ico { background: color-mix(in srgb, var(--surface) 16%, transparent); color: var(--surface); }

/* hover fixes: the default theme turned the icon tile into a gradient with a white icon; keep it calm and readable */
body.pro .contact-item:hover .icon-box { background: var(--sg-soft); color: var(--accent); }
body.pro .contact-item:hover .icon-box svg { color: var(--accent); stroke: var(--accent); }
body[data-template="midnight"] .contact-item:hover .icon-box svg { color: color-mix(in srgb, var(--accent) 55%, #fff); stroke: color-mix(in srgb, var(--accent) 55%, #fff); }
body.pro .contact-item:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
body.pro .contact-item:hover small, body.pro .contact-item:hover strong { color: inherit; }

/* pill-style tabs need breathing room (the always-open menu rule is more specific than the template rule) */
body.pro[data-template="pure"] .section-nav-menu, body.pro[data-template="live"] .section-nav-menu, body.pro[data-template="banner-pro"] .section-nav-menu { padding: 9px 14px; gap: 6px; }
body.pro[data-template="pure"] .section-nav-menu a, body.pro[data-template="live"] .section-nav-menu a, body.pro[data-template="banner-pro"] .section-nav-menu a { border-radius: 999px; border-bottom: 0; }
body.pro[data-template="editorial"] .section-nav-menu, body.pro[data-template="stripe"] .section-nav-menu { padding: 0 10px; }

/* the chat dock carries a white fade panel in the default theme; behind the round button it showed as a white box on wide screens */
body.pro .card-chat-dock { background: none; border-radius: 0; box-shadow: none; z-index: 100; }

/* services & products: cards with a picture on top, name, short text, price and an Enquire button */
body.pro .item-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
body.pro .item-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; background: var(--surface); border: 1px solid var(--sg-line); border-radius: 16px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
body.pro .item-card:first-child, body.pro .item-card:last-child { padding: 0; border-bottom: 1px solid var(--sg-line); }
body.pro .item-card:hover { padding-left: 0; transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 35%, var(--sg-line)); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--ink) 40%, transparent); }
body.pro .item-card img { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; object-fit: cover; }
body.pro .item-card-ph { display: flex; align-items: center; justify-content: center; flex: none; width: 100%; aspect-ratio: 16 / 7; background: linear-gradient(135deg, var(--sg-soft), color-mix(in srgb, var(--accent) 16%, var(--surface))); color: var(--accent); font: 700 2.2rem/1 var(--font); }
body.pro .item-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
body.pro .item-card h3 { font: 650 1rem/1.3 var(--font); }
body.pro .item-card p { -webkit-line-clamp: 3; margin: 6px 0 0; font-size: 0.85rem; }
body.pro .item-card-foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--sg-line); justify-content: space-between; flex-wrap: nowrap; }
body.pro .item-card-foot .price { margin-right: auto; padding: 5px 11px; border-radius: 999px; background: var(--sg-soft); color: var(--accent); font-weight: 700; font-size: 0.85rem; }
body.pro .item-card-foot .btn-whatsapp-sm { min-height: 36px; padding: 0 16px; font-size: 0.8rem; white-space: nowrap; }
body.pro .item-card-foot .btn-whatsapp-sm:last-child { background: var(--accent); color: #fff; }
body.pro .item-card-foot .btn-whatsapp-sm:last-child:hover { filter: brightness(1.08); }
@media (min-width: 720px) { body.pro .item-cards { grid-template-columns: 1fr 1fr; } }

/* gallery tile layouts: a mosaic of mixed tiles for some templates, a masonry-style stack for others */
body[data-template="signature"] .gallery-grid, body[data-template="pure"] .gallery-grid, body[data-template="banner-pro"] .gallery-grid, body[data-template="live"] .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
body[data-template="signature"] .gallery-grid .gallery-item:nth-child(6n+1),
body[data-template="pure"] .gallery-grid .gallery-item:nth-child(6n+1),
body[data-template="banner-pro"] .gallery-grid .gallery-item:nth-child(6n+1),
body[data-template="live"] .gallery-grid .gallery-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
body[data-template="signature"] .gallery-grid .gallery-item,
body[data-template="pure"] .gallery-grid .gallery-item,
body[data-template="banner-pro"] .gallery-grid .gallery-item,
body[data-template="live"] .gallery-grid .gallery-item { aspect-ratio: 1 / 1; border-radius: 10px; }
body[data-template="studio"] .gallery-grid, body[data-template="portrait"] .gallery-grid, body[data-template="midnight"] .gallery-grid { display: block; column-count: 2; column-gap: 8px; }
body[data-template="studio"] .gallery-grid .gallery-item, body[data-template="portrait"] .gallery-grid .gallery-item, body[data-template="midnight"] .gallery-grid .gallery-item { display: block; width: 100%; margin: 0 0 8px; break-inside: avoid; aspect-ratio: auto; height: auto; }
body[data-template="studio"] .gallery-grid .gallery-item:nth-child(3n+1) img, body[data-template="portrait"] .gallery-grid .gallery-item:nth-child(3n+1) img, body[data-template="midnight"] .gallery-grid .gallery-item:nth-child(3n+1) img { aspect-ratio: 3 / 4; }
body[data-template="studio"] .gallery-grid .gallery-item:nth-child(3n+2) img, body[data-template="portrait"] .gallery-grid .gallery-item:nth-child(3n+2) img, body[data-template="midnight"] .gallery-grid .gallery-item:nth-child(3n+2) img { aspect-ratio: 1 / 1; }
body[data-template="studio"] .gallery-grid .gallery-item:nth-child(3n) img, body[data-template="portrait"] .gallery-grid .gallery-item:nth-child(3n) img, body[data-template="midnight"] .gallery-grid .gallery-item:nth-child(3n) img { aspect-ratio: 4 / 3; }

/* reviews: keep cards inside the section gutter, never clipped at the edges */
body.pro .reviews-list { margin: 0 -22px; padding: 2px 22px 10px; scroll-padding-left: 22px; }
body.pro .review-card { flex: 0 0 84%; max-width: 340px; padding: 14px 16px; }
body.pro .review-card .review-top { display: flex; justify-content: space-between; }
body.pro .review-card p { font-size: 14px; }

/* signature: a plain black-and-white QR on the right, level with the logo; tap opens the big QR */
body[data-template="signature"] .qr-block { display: flex; flex-direction: column; align-items: center; gap: 0; position: absolute; right: 0; top: -50px; bottom: auto; width: 88px; height: auto; box-sizing: border-box; padding: 7px; border: 0; border-radius: 10px; background: #fff; z-index: 5; box-shadow: 0 0 0 3px var(--surface), 0 8px 20px -10px rgba(8, 12, 24, .4); }
body[data-template="signature"] #qr-code { width: 74px; height: 74px; border-radius: 0; background: #fff; cursor: pointer; }
body[data-template="signature"] #qr-code img, body[data-template="signature"] #qr-code canvas { width: 74px !important; height: 74px !important; max-width: 74px !important; }

/* custom: a copy of signature (QR placement) */
body[data-template="custom"] .qr-block { display: flex; flex-direction: column; align-items: center; gap: 0; position: absolute; right: 0; top: -50px; bottom: auto; width: 88px; height: auto; box-sizing: border-box; padding: 7px; border: 0; border-radius: 10px; background: #fff; z-index: 5; box-shadow: 0 0 0 3px var(--surface), 0 8px 20px -10px rgba(8, 12, 24, .4); }
body[data-template="custom"] #qr-code { width: 74px; height: 74px; border-radius: 0; background: #fff; cursor: pointer; }
body[data-template="custom"] #qr-code img, body[data-template="custom"] #qr-code canvas { width: 74px !important; height: 74px !important; max-width: 74px !important; }

/* ===== CUSTOM template: panel product showcase + mosaic gallery (rest of the card = Signature) ===== */
body[data-template="custom"] .cp-panels { display: flex; gap: 8px; height: 360px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; margin: 0 -22px; padding: 2px 22px 6px; scrollbar-width: none; }
body[data-template="custom"] .cp-panels::-webkit-scrollbar { display: none; }
body[data-template="custom"] .cp-panel { position: relative; flex: 0 0 52px; border-radius: 18px; overflow: hidden; cursor: pointer; scroll-snap-align: center; color: #fff; isolation: isolate;
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 80%, #000), color-mix(in srgb, var(--accent) 38%, #000));
  transition: flex-basis .45s cubic-bezier(.2,.8,.2,1); }
body[data-template="custom"] .cp-panel:nth-child(even) { background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 55%, #000), color-mix(in srgb, var(--accent) 22%, #000)); }
body[data-template="custom"] .cp-panel.is-active { flex-basis: 74%; max-width: 330px; cursor: default; }
body[data-template="custom"] .cp-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body[data-template="custom"] .cp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; z-index: -1; mix-blend-mode: luminosity; }
body[data-template="custom"] .cp-panel.is-active .cp-bg { opacity: .55; mix-blend-mode: normal; }
body[data-template="custom"] .cp-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px), linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.62) 100%); }
body[data-template="custom"] .cp-num { position: absolute; top: 12px; left: 12px; font: 700 11px/1 var(--font); letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; background: rgba(0,0,0,.28); }
body[data-template="custom"] .cp-vtitle { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font: 700 15px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; max-height: calc(100% - 70px); overflow: hidden; text-overflow: ellipsis; transition: opacity .25s; }
body[data-template="custom"] .cp-panel.is-active .cp-vtitle { opacity: 0; pointer-events: none; }
body[data-template="custom"] .cp-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s .12s, transform .3s .12s; }
body[data-template="custom"] .cp-panel.is-active .cp-body { opacity: 1; transform: none; pointer-events: auto; }
body[data-template="custom"] .cp-body h3 { margin: 0; font: 700 1.2rem/1.2 var(--font); color: #fff; }
body[data-template="custom"] .cp-body p { margin: 6px 0 0; font-size: .85rem; line-height: 1.45; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body[data-template="custom"] .cp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
body[data-template="custom"] .cp-foot .price { font-weight: 700; font-size: .95rem; color: #fff; margin-right: auto; }
body[data-template="custom"] .cp-btn { padding: 9px 16px; border-radius: 10px; font: 700 .82rem/1 var(--font); text-decoration: none; background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(6px); }
body[data-template="custom"] .cp-btn.is-main { background: #fff; color: #14171f; }
body[data-template="custom"] .cp-hint { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .75rem; color: var(--muted); }
body[data-template="custom"] .cp-count { font-variant-numeric: tabular-nums; }

body[data-template="custom"] .gallery-grid.cg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
body[data-template="custom"] .gallery-grid.cg .gallery-item { aspect-ratio: 1 / 1; border-radius: 14px; }
body[data-template="custom"] .gallery-grid.cg .gallery-item:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }
body[data-template="custom"] .gallery-grid.cg.cg-collapsed .gallery-item.cg-extra { display: none; }
body[data-template="custom"] .cg-more { aspect-ratio: 1 / 1; border: 1px solid var(--sg-line); border-radius: 14px; background: var(--sg-soft, var(--surface)); color: var(--ink); font: 700 .95rem/1.2 var(--font); cursor: pointer; display: grid; place-items: center; padding: 6px; text-align: center; }
body[data-template="custom"] .cg-more:hover { border-color: var(--accent); color: var(--accent); }

/* signature / custom: the QR, share and language buttons sit just under the banner, on the right, level with the profile photo */
body[data-template="signature"] .sg-hero-btns, body[data-template="custom"] .sg-hero-btns { top: calc(100% + 12px); right: 14px; }
body[data-template="signature"] .sg-hero-btns .sg-glass, body[data-template="custom"] .sg-hero-btns .sg-glass { background: rgba(15, 20, 35, .42); }

/* masonry galleries (studio / portrait / midnight): two stretching columns, the "+N more" tile fills the gap under the shorter one */
body.pro .gallery-grid.gm { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; column-count: auto; align-items: stretch; }
body.pro .gallery-grid.gm .gm-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
body.pro[data-template] .gallery-grid.gm .gallery-item { margin: 0; width: 100%; height: auto; aspect-ratio: auto; break-inside: auto; flex: none; }
body.pro[data-template] .gallery-grid.gm .gm-t img { aspect-ratio: 3 / 4; }
body.pro[data-template] .gallery-grid.gm .gm-s img { aspect-ratio: 1 / 1; }
body.pro[data-template] .gallery-grid.gm .gm-w img { aspect-ratio: 4 / 3; }
body.pro .gallery-grid.gm.gm-collapsed .gallery-item.gm-extra { display: none; }
body.pro .gallery-grid.gm .gm-more { flex: 1 1 auto; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--accent); cursor: pointer; font-family: var(--font); transition: background .2s, transform .2s; }
body.pro .gallery-grid.gm .gm-more:hover { background: color-mix(in srgb, var(--accent) 15%, var(--surface)); transform: translateY(-1px); }
body.pro .gallery-grid.gm .gm-more b { font-size: 1.7rem; line-height: 1; font-weight: 800; }
body.pro .gallery-grid.gm .gm-more span { font-size: .8rem; font-weight: 600; color: var(--ink); }
body.pro .gm-wrap .gm-less { display: none; margin: 12px auto 0; padding: 4px 8px; border: 0; background: none; color: var(--muted); font: 600 .78rem/1 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body.pro .gm-wrap:not(.gm-collapsed) .gm-less { display: block; }
body.pro .gm-wrap:not(.gm-collapsed) .gm-more { display: none; }
