/* Sova Mart — storefront styles */
:root {
  --brand: #e8456b;
  --brand-dark: #c62f55;
  --accent: #ffb400;
  --ink: #1f2235;
  --muted: #6b6f85;
  --line: #ececf3;
  --bg: #ffffff;
  --soft: #faf7fb;
  --ok: #1a9b5c;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 34, 53, 0.08);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); font-size: .9em; }
[hidden] { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .8em 1.4em; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, transform .1s; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:active { transform: scale(.98); }
.btn:disabled { background: #c9cad6; cursor: not-allowed; }
.btn-alt { background: var(--ink); }
.btn-alt:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-small { padding: .55em 1em; font-size: .88em; width: 100%; }
.btn-block { width: 100%; margin-top: .6em; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; font-size: .85em; padding: 0; }

/* header */
.topbar { background: var(--ink); color: #fff; text-align: center; font-size: .82em; padding: .5em 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.35em; font-weight: 500; white-space: nowrap; }
.logo b { color: var(--brand); font-weight: 700; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 800; }
.search { flex: 1; display: flex; max-width: 560px; margin-inline: auto; background: var(--soft); border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; border: 0; background: transparent; padding: .7em 1.1em; font: inherit; outline: none; min-width: 0; }
.search button { border: 0; background: transparent; padding: 0 1em; cursor: pointer; font-size: 1.05em; }
.search:focus-within { border-color: var(--brand); }
.header-actions { display: flex; gap: 6px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--soft); font-size: 1.15em; cursor: pointer; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; }
.main-nav .container { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.main-nav a { padding: .45em .9em; border-radius: 999px; font-size: .9em; font-weight: 500; white-space: nowrap; }
.main-nav a.active, .main-nav a:hover { background: #ffe9ef; color: var(--brand); }

/* hero */
.hero { background: radial-gradient(circle at 85% 20%, #fff1d6 0, transparent 45%), linear-gradient(135deg, #ffe9ef 0%, #f4ecff 100%); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: 56px 0; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.hero h1 span { color: var(--brand); }
.hero p { font-size: 1.1em; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; font-size: clamp(2.4rem, 6vw, 4rem); }
.hero-art span { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-radius: 22px; box-shadow: var(--shadow); animation: float 4s ease-in-out infinite; }
.hero-art span:nth-child(2n) { animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* sections */
section { padding: 44px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 1.6em; }
.section-head a { color: var(--brand); font-weight: 600; white-space: nowrap; }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 10px; border-radius: var(--radius); text-align: center; font-weight: 600; transition: transform .2s; }
.cat:hover { transform: translateY(-4px); color: var(--ink); }
.cat-emoji { font-size: 2.4em; }
.cat small { color: var(--muted); font-weight: 400; }

.perks-band { background: var(--soft); }
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perk { display: flex; gap: 12px; align-items: center; }
.perk span { font-size: 1.8em; }
.perk b { display: block; }
.perk small { color: var(--muted); }

.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo-card { border-radius: var(--radius); padding: 32px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 190px; justify-content: center; }
.promo-card h3 { font-size: 1.5em; margin: 0; }
.promo-card .btn { background: #fff; color: var(--ink); margin-top: 6px; }
.promo-a { background: linear-gradient(135deg, #e8456b, #ff8a5c); }
.promo-b { background: linear-gradient(135deg, #5b4bdb, #2bb3e6); }

/* product grid + card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: .95em; font-weight: 500; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pvisual { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; overflow: hidden; font-size: 4rem; }
.pvisual img { width: 100%; height: 100%; object-fit: cover; }
.pvisual.large { font-size: 9rem; border-radius: var(--radius); }
.pvisual.thumb { width: 84px; font-size: 2.4rem; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; min-height: 20px; }
.tag { font-size: .7em; font-weight: 700; padding: .15em .6em; border-radius: 6px; text-transform: uppercase; letter-spacing: .02em; }
.tag-off { background: #e3f7ec; color: var(--ok); }
.tag-new { background: #e7e9ff; color: #4c50c8; }
.tag-best { background: #fff3d6; color: #a06a00; }
.tag-out { background: #f1f1f4; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 1.1em; }
.price s { color: var(--muted); font-size: .88em; }
.wish { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); cursor: pointer; font-size: 1.05em; color: var(--brand); }
.wish.inline { position: static; width: 46px; height: 46px; }
.empty { text-align: center; padding: 48px 16px; background: var(--soft); border-radius: var(--radius); }

/* shop */
.page-head { background: var(--soft); padding: 28px 0; }
.page-head h1 { margin: 0; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 28px 0 56px; }
.filters { display: flex; flex-direction: column; gap: 18px; align-self: start; position: sticky; top: 140px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9em; }
.filters label.check { flex-direction: row; align-items: center; font-weight: 500; }
select, input, textarea { font: inherit; padding: .65em .8em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
input[type=range] { padding: 0; accent-color: var(--brand); }
select:focus, input:focus, textarea:focus { outline: 2px solid #ffc6d4; border-color: var(--brand); }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--muted); }

/* product page */
.crumbs { font-size: .85em; color: var(--muted); margin: 20px 0; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-info h1 { font-size: 1.8em; margin-top: 6px; }
.product-info .price b { font-size: 1.7em; }
.save { color: var(--ok); font-weight: 600; margin: 4px 0; }
.facts { padding-left: 1.1em; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 44px; border: 0; background: var(--soft); font-size: 1.2em; cursor: pointer; }
.qty input { width: 52px; border: 0; text-align: center; border-radius: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.small button { width: 32px; height: 32px; }
.qty.small span { min-width: 32px; text-align: center; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .88em; background: var(--soft); padding: 14px; border-radius: var(--radius); }
.wa-link { display: inline-block; margin-top: 14px; color: var(--ok); font-weight: 600; }

/* cart & checkout */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; padding: 28px 0 56px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-info { display: flex; flex-direction: column; gap: 4px; }
.line-total { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.summary { background: var(--soft); border-radius: var(--radius); padding: 22px; position: sticky; top: 140px; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.summary .total { border-top: 1.5px dashed #d8d8e4; margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.15em; }
.summary .hint { font-size: .82em; color: var(--brand); margin: 2px 0; }
.mini-lines { border-bottom: 1px solid var(--line); margin-bottom: 8px; padding-bottom: 8px; font-size: .88em; }
.mini-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label, .stack label { display: flex; flex-direction: column; gap: 5px; font-size: .88em; font-weight: 600; }
.pay-option { display: flex; gap: 10px; align-items: center; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; font-weight: 500 !important; flex-direction: row !important; }
.pay-option:has(input:checked) { border-color: var(--brand); background: #fff5f8; }
.upi-box { display: flex; gap: 14px; align-items: center; background: #fff8e6; border-radius: 12px; padding: 12px 14px; font-size: .9em; }
.upi-box img { width: 140px; height: 140px; flex: none; border-radius: 8px; background: #fff; }
.upi-box p { margin: 0 0 .5em; }
.upi-pay { background: #fff8e6; border-radius: var(--radius); padding: 20px; margin: 18px auto; max-width: 380px; }
.upi-pay img { margin: 8px auto; border-radius: 10px; background: #fff; }
@media (max-width: 480px) { .upi-box { flex-direction: column; text-align: center; } }
.note { font-size: .85em; color: var(--muted); }

/* content pages */
.prose { max-width: 820px; padding: 32px 0 56px; }
.prose h2 { margin-top: 1.6em; }
.success { text-align: center; padding: 70px 0; max-width: 620px; }
.success .big { font-size: 4em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px 0 56px; }
.info-list p { display: flex; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.values div { background: var(--soft); border-radius: var(--radius); padding: 18px; }
.values span { font-size: 2em; }

/* footer */
.site-footer { background: var(--ink); color: #d6d7e3; margin-top: 20px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 28px; padding: 44px 0 28px; }
.footer-grid h4 { color: #fff; }
.footer-grid > div > a:not(.logo) { display: block; padding: 3px 0; font-size: .92em; }
.footer-grid p { font-size: .9em; margin: .4em 0; }
.footer-grid .logo { color: #fff; margin-bottom: 8px; }
.social { display: flex; gap: 14px; font-size: .88em; margin-top: 10px; }
.social a { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #34374d; padding: 16px 0; font-size: .82em; text-align: center; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25d366; font-size: 1.6em; box-shadow: 0 6px 20px rgba(37, 211, 102, .45); z-index: 60; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: #fff; padding: .75em 1.3em; border-radius: 999px; font-size: .9em; transition: transform .3s, opacity .3s; z-index: 70; opacity: 0; visibility: hidden; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* responsive */
@media (max-width: 980px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .perks-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .header-row { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; }
  .header-actions { margin-left: auto; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav .container { flex-direction: column; }
  .hero .container { grid-template-columns: 1fr; padding: 36px 0; }
  .hero-art { max-width: 340px; }
  .promo, .product-layout, .contact-grid, .values { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .pvisual.large { font-size: 6rem; }
  .line { grid-template-columns: 64px 1fr; }
  .pvisual.thumb { width: 64px; }
  .line-total { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 420px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .perks-grid, .footer-grid { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
}

/* ---------- live data features (admin-controlled) ---------- */
.loading-block { min-height: 50vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.preview-bar { background: #1f4fd1; color: #fff; text-align: center; font-size: .85em; padding: .5em 16px; font-weight: 600; }
.tag-offer { background: #fff0e0; color: #c25700; }
.offer-note { color: #c25700; font-weight: 600; margin: 4px 0; }
.cat-img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.offer-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.offer-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, #fff1d6, #ffe1e8); border: 1px dashed var(--brand); }
.offer-card span { font-size: 1.6em; font-weight: 800; color: var(--brand); }
.offer-card small { color: var(--muted); }
.slider { position: relative; overflow: hidden; padding: 0; }
.slides { position: relative; min-height: 380px; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s; display: flex; align-items: center; color: #fff; }
.slide.on { opacity: 1; position: relative; min-height: 380px; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.05)); }
.slide-inner { position: relative; padding: 56px 0; }
.slide h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); max-width: 640px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.slide p { font-size: 1.1em; max-width: 520px; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.dots button.on { background: #fff; width: 26px; border-radius: 6px; }
.shop-banner { margin-top: 20px; border-radius: var(--radius); padding: 22px 26px; color: #fff; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.shop-banner b { font-size: 1.25em; } .shop-banner span { opacity: .9; }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-btn { width: 68px; height: 68px; border-radius: 10px; border: 2px solid var(--line); padding: 0; overflow: hidden; cursor: pointer; background: #fff; }
.thumb-btn.on { border-color: var(--brand); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.video-wrap { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 0; background: #000; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.desc { margin: .6em 0; }
.coupon-form { display: flex; gap: 8px; margin: 12px 0 4px; }
.coupon-form input { padding: .55em .8em; }
.coupon-applied { margin: 12px 0 4px; padding: 10px 12px; background: #e3f7ec; border-radius: 10px; color: var(--ok); font-size: .9em; display: flex; gap: 8px; align-items: center; }
.coupon-applied .link { margin-left: auto; }
.maintenance { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: linear-gradient(135deg, #ffe9ef, #f4ecff); }
.maintenance .logo-mark.big { width: 72px; height: 72px; font-size: 34px; border-radius: 20px; margin-bottom: 12px; }
.maintenance p { max-width: 460px; color: var(--muted); }
@media (max-width: 760px) { .slides, .slide.on { min-height: 300px; } }
.line-info .qty { align-self: flex-start; }

/* ---------- hero shader background (progressive enhancement) ---------- */
.slide-art { display: none; }
.slider.has-shader { background: #1f2235; isolation: isolate; }
.hero-shader { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; opacity: 0; transition: opacity .8s ease; }
.hero-shader.on { opacity: 1; }
.slider.has-shader .slides { z-index: 1; }
.slider.has-shader .slide { background: transparent !important; }
.slider.has-shader .slide-art { display: block; position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center right;
  -webkit-mask-image: linear-gradient(90deg, transparent 24%, rgba(0,0,0,.55) 42%, #000 62%); mask-image: linear-gradient(90deg, transparent 24%, rgba(0,0,0,.55) 42%, #000 62%); }
.slider.has-shader .slide::before { z-index: 1; background: linear-gradient(90deg, rgba(14,10,32,.42), rgba(14,10,32,.12) 55%, transparent 75%); }
.slider.has-shader .slide-inner { z-index: 2; }
.slider.has-shader .dots { z-index: 3; }
/* No WebGL: a gentle CSS gradient in the same brand colours. */
.slider.shader-fallback { background: linear-gradient(120deg, var(--sh1), var(--sh2), var(--sh3), var(--sh2), var(--sh1)); background-size: 300% 300%; animation: shaderShift 18s ease-in-out infinite; }
@keyframes shaderShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .slider.shader-fallback { animation: none; } .hero-shader { transition: none; } }
@media (max-width: 760px) {
  .slider.has-shader .slide-art { background-position: 75% center; opacity: .55;
    -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 80%); mask-image: linear-gradient(90deg, transparent 15%, #000 80%); }
}

/* ---------- shop by character ---------- */
.chars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.char { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1.5px dashed #f0a3b2; border-radius: var(--radius); padding: 8px 8px 10px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.char:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); color: var(--ink); }
.char img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 10px; }
.char span { font-size: .85em; font-weight: 600; text-align: center; }
@media (max-width: 980px) { .chars { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .chars { grid-template-columns: repeat(3, 1fr); gap: 10px; } .char span { font-size: .78em; } }

/* ---------- animated logo slide (hero) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.slide.brand-slide { background: radial-gradient(ellipse at 72% 45%, #4a2a52 0%, #2a1530 45%, #160b1e 100%) !important; }
.slide.brand-slide::before { background: radial-gradient(circle at 15% 85%, rgba(232,69,107,.28), transparent 45%), radial-gradient(circle at 95% 10%, rgba(242,179,61,.18), transparent 40%); }
.slider.has-shader .slide.brand-slide { background: radial-gradient(ellipse at 72% 45%, rgba(74,42,82,.55) 0%, rgba(22,11,30,.35) 70%) !important; }
.brand-inner { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px; }
.brand-copy h1 span { color: #f2c14e; text-shadow: 0 2px 18px rgba(242,193,78,.35); }
.brand-art { position: relative; height: 330px; display: flex; align-items: center; justify-content: center; gap: 2%; }
.brand-glow { position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(ellipse, rgba(242,193,78,.28), transparent 62%); filter: blur(6px); }
.brand-owl { position: relative; height: 92%; width: auto; filter: drop-shadow(0 18px 22px rgba(0,0,0,.45)); transform-origin: 50% 90%; }
.brand-word { position: relative; height: 92%; aspect-ratio: 618 / 381; filter: drop-shadow(0 10px 18px rgba(0,0,0,.4)); }
.brand-word img { width: 100%; height: 100%; display: block; }
.brand-shine { position: absolute; inset: 0; pointer-events: none; -webkit-mask: url("../img/brand/wordmark.png") center / 100% 100% no-repeat; mask: url("../img/brand/wordmark.png") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.9) 48%, rgba(255,246,210,.6) 52%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: 160% 0; mix-blend-mode: screen; }
.spark { position: absolute; width: 22px; height: 22px; transform: scale(var(--s, 1)); opacity: 0; z-index: 1;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%), conic-gradient(from 45deg, transparent 0 20%, #ffe9a8 22% 28%, transparent 30% 45%, #ffe9a8 47% 53%, transparent 55% 70%, #ffe9a8 72% 78%, transparent 80% 95%, #ffe9a8 97%);
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 70%); mask: radial-gradient(circle, #000 0 30%, transparent 70%); }

/* animations play each time the slide becomes active */
.slide.brand-slide.on .brand-owl { animation: owlIn 1s cubic-bezier(.2,1.4,.4,1) both, owlFloat 4.5s ease-in-out 1s infinite; }
.slide.brand-slide.on .brand-word img { animation: wordIn 1.1s cubic-bezier(.25,1,.35,1) .35s both; }
.slide.brand-slide.on .brand-shine { animation: shine 3.2s ease-in-out 1.4s infinite; }
.slide.brand-slide.on .spark { animation: twinkle 2.8s ease-in-out infinite; }
.slide.brand-slide.on .brand-copy > * { animation: copyIn .7s ease-out both; }
.slide.brand-slide.on .brand-copy p { animation-delay: .15s; } .slide.brand-slide.on .brand-copy .btn { animation-delay: .3s; }
@keyframes owlIn { from { transform: translate(-60px, 40px) rotate(-14deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes owlFloat { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-10px) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(2deg); } 75% { transform: translateY(-12px) rotate(-1deg); } }
@keyframes wordIn { from { clip-path: inset(0 100% 0 0); transform: translateX(-12px); opacity: .2; } to { clip-path: inset(0 0 0 0); transform: none; opacity: 1; } }
@keyframes shine { 0% { background-position: 160% 0; } 45%, 100% { background-position: -60% 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(calc(var(--s) * .4)) rotate(0); } 50% { opacity: 1; transform: scale(var(--s)) rotate(45deg); } }
@keyframes copyIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .slide.brand-slide.on * { animation: none !important; } .spark { opacity: .8; } }
@media (max-width: 760px) {
  .slide.brand-slide.on { min-height: 470px; }
  .brand-inner { grid-template-columns: 1fr; gap: 6px; padding: 22px 0 46px; }
  .brand-art { order: -1; height: 170px; }
  .brand-copy h1 { font-size: 1.65rem; }
}

/* ---------- developer credit (footer + about page) ---------- */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.dev-credit { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); transition: background .2s; }
.dev-credit:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.dev-credit img { width: 40px; height: 34px; object-fit: cover; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .6); }
.dev-credit b { color: #ffe066; font-weight: 700; }
.developer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; margin: 36px 0 12px; padding: 22px; border-radius: 26px; background: var(--soft); scroll-margin-top: 140px; }
.developer-photo { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 34px rgba(60, 30, 120, .22); }
.developer-photo img { width: 100%; height: auto; display: block; }
.developer-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); background: linear-gradient(125deg, rgba(255, 255, 255, .35), transparent 30%); }
.developer-text small { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--brand); }
.developer-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .1em 0 .3em; }
.developer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.developer-tags span { padding: .3em .9em; border-radius: 999px; background: #fff; box-shadow: 0 3px 0 rgba(139, 92, 246, .18); font-size: .9em; font-weight: 600; }
html.playful .developer { background: linear-gradient(135deg, #ffe0ec, #ece4ff 60%, #d9f6ff); box-shadow: 0 6px 0 #f1e6ff; }
html.cinematic .developer { background: var(--panel); border: 1px solid var(--line); }
html.cinematic .developer-tags span { background: var(--panel-2); color: var(--ink); }
@media (max-width: 760px) {
  .developer { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
