/* ============================================================
   NikahCard — app.css — platform design system (no frameworks)
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --paper: #faf7f1;
  --paper-deep: #f1ebde;
  --ink: #1c1813;
  --ink-2: #2e2921;
  --muted: #7a7162;
  --line: #e5ddcd;
  --line-strong: #cec4b0;
  --surface: #ffffff;
  --accent: #0e5c46;
  --accent-deep: #0a4536;
  --accent-soft: #e3efe8;
  --gold: #b08d3e;
  --gold-deep: #8f6f2c;
  --gold-soft: #f3ead4;
  --danger: #b3402f;
  --display: 'Playfair Display Variable', 'Playfair Display', Georgia, serif;
  --body: 'Outfit Variable', 'Outfit', system-ui, -apple-system, sans-serif;
  --bn: 'Noto Sans Bengali', 'Outfit Variable', sans-serif;
  --bn-serif: 'Noto Serif Bengali', 'Playfair Display Variable', serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(28, 24, 19, 0.05), 0 10px 30px rgba(28, 24, 19, 0.07);
  --shadow-2: 0 2px 8px rgba(28, 24, 19, 0.09), 0 28px 60px rgba(28, 24, 19, 0.14);
  --shadow-gold: 0 2px 8px rgba(176, 141, 62, 0.18), 0 24px 60px rgba(176, 141, 62, 0.2);
  --head-h: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
body::after { content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none; background-image: url('../assets/grain.png'); opacity: 0.028; mix-blend-mode: multiply; }
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bn { font-family: var(--bn); }

/* skip link — keyboard users jump straight past the chrome */
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; transition: top 0.25s cubic-bezier(0.16,1,0.3,1); }
.skip-link:focus-visible { top: 14px; outline-offset: 0; }

/* ---------- type helpers ---------- */
.h-display { font-family: var(--display); font-weight: 500; }
/* editorial kicker — italic serif, never tracked caps (DESIGN.md) */
.eyebrow { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 15px; letter-spacing: 0.01em; text-transform: none; color: var(--gold-deep); }
.eyebrow--accent { color: var(--accent); }
html[lang="bn"] .eyebrow { font-family: var(--bn); font-style: normal; font-weight: 600; font-size: 12.5px; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.h-xs { font-size: 13px; } .h-sm { font-size: 14px; } .h-lg { font-size: 18px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 138px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-family: var(--display); font-size: clamp(2.3rem, 4.8vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* editorial section header: text block + ghost count */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 68px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.sec-head-txt { max-width: 660px; }
.sec-head h2 { font-family: var(--display); font-size: clamp(2.5rem, 5.2vw, 4.1rem); line-height: 1.02; letter-spacing: -0.02em; margin-top: 14px; text-wrap: balance; }
.sec-head h2 em, .band-title em, .cta-final h2 em { font-style: italic; color: var(--gold-deep); }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.sec-count { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 2.8vw, 2.1rem); color: var(--muted); opacity: 0.75; flex-shrink: 0; padding-bottom: 6px; }

/* inner-page editorial header */
.page-head { padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.page-head h1 { font-family: var(--display); font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: -0.02em; line-height: 1.03; margin-top: 16px; text-wrap: balance; }
.page-head h1 em { font-style: italic; color: var(--gold-deep); }
.page-head > p { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 54ch; line-height: 1.65; }
.link-arrow { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--line-strong); padding-bottom: 3px; transition: color 0.2s, border-color 0.2s; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-back { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color 0.18s; }
.link-back::before { content: '←'; font-size: 15px; transition: transform 0.25s var(--ease-out); }
.link-back:hover { color: var(--accent); }
.link-back:hover::before { transform: translateX(-3px); }
.orn { display: flex; align-items: center; gap: 14px; color: var(--gold); font-size: 13px; }
.orn::before, .orn::after { content: ''; height: 1px; background: var(--line-strong); flex: 0 0 40px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 26px; font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 1px 2px rgba(28,24,19,0.15); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 6px 18px rgba(10,69,54,0.28); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 1px 2px rgba(14,92,70,0.25); }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 6px 18px rgba(14,92,70,0.32); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); background: var(--surface); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(28,24,19,0.08); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: rgba(29, 26, 21, 0.06); }
.btn--gold { position: relative; overflow: hidden; background: linear-gradient(135deg, #cfa653, #9c7a34); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.15); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 6px rgba(140,105,40,0.25); }
.btn--gold::after { content: ''; position: absolute; top: -12%; bottom: -12%; left: 0; width: 42%; background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent); transform: translateX(-150%) skewX(-16deg); transition: transform 0.65s cubic-bezier(0.16,1,0.3,1); pointer-events: none; }
.btn--gold:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), var(--shadow-gold); }
.btn--gold:hover::after { transform: translateX(340%) skewX(-16deg); }
.btn--danger { background: var(--danger); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.14); }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 86%, #000); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 6px 18px rgba(179,64,47,0.3); }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 15px 32px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn .kbd { font-size: 11px; opacity: 0.6; }
/* async busy state — JS sets .busy and hides the label behind a spinner */
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy > * { visibility: hidden; }
.btn.busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: btnSpin 0.7s linear infinite; }
.btn--outline.busy::after, .btn--ghost.busy::after { border-color: rgba(28,24,19,0.25); border-top-color: var(--ink); }
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.badge--free { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge--plus { background: var(--gold-soft); color: var(--gold-deep); border-color: transparent; }
.badge--pro { background: var(--ink); color: var(--paper); border-color: transparent; }
.badge--go { background: var(--paper-deep); color: var(--ink-2); border-color: transparent; }
.badge--warn { background: color-mix(in srgb, var(--danger) 9%, var(--surface)); color: var(--danger); border-color: transparent; }
.badge--ok { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); padding: 11px 13px; font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:hover:not(:focus), .field select:hover:not(:focus), .field textarea:hover:not(:focus) { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.field .err { font-size: 12px; color: var(--danger); margin-top: 5px; }
.form-err { background: color-mix(in srgb, var(--danger) 9%, var(--surface)); color: var(--danger); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 500; color: var(--ink); background: var(--surface); transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s var(--ease-out); white-space: nowrap; flex-shrink: 0; cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip:active { transform: scale(0.96); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--fav i { font-style: normal; margin-right: 2px; }
.chip--fav.on i { color: var(--gold); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; margin: 0; flex-shrink: 0; }
.check input[type="checkbox"]:hover { border-color: var(--muted); }
.check input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.check input[type="checkbox"]:checked::after { content: '✓'; font-size: 11px; font-weight: 800; color: #fff; line-height: 1; }
.check input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* switch — section visibility + binary toggles (editor, admin) */
.switch { position: relative; display: inline-block; flex-shrink: 0; }
input.switch, .switch input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background 0.2s; margin: 0; flex-shrink: 0; }
input.switch::after, .switch input[type="checkbox"]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: left 0.22s var(--ease-out); }
input.switch:checked, .switch input[type="checkbox"]:checked { background: var(--accent); }
input.switch:checked::after, .switch input[type="checkbox"]:checked::after { left: 21px; }
input.switch:focus-visible, .switch input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input.switch:disabled, .switch input[type="checkbox"]:disabled { opacity: 0.45; cursor: not-allowed; }
.swatch { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 8px 12px; cursor: pointer; font-size: 13px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1); }
.swatch:hover { transform: translateY(-1px); border-color: var(--ink); }
.swatch.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.swatch i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.25s; }
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 24px rgba(28,24,19,0.05); }
.head-in { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--display); font-size: 16px; font-weight: 600; }
.brand span { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); padding: 8px 13px; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.nav a:hover { color: var(--ink); background: rgba(29, 26, 21, 0.05); }
.nav a.on { color: var(--accent-deep); background: var(--accent-soft); }
.head-right { display: flex; align-items: center; gap: 8px; }
.head-right .btn--ghost.hide-m, .head-right .btn--outline.hide-m { display: none; }
@media (max-width: 520px) {
  .head-right .btn--primary.btn--sm { display: none; }
  .head-in { gap: 12px; }
}
.menu-btn { width: 40px; height: 40px; border-radius: 10px; display: none; place-items: center; }
.menu-btn:hover { background: rgba(29, 26, 21, 0.05); }
@media (min-width: 860px) {
  .nav { display: flex; }
  .head-right .btn--ghost.hide-m, .head-right .btn--outline.hide-m { display: inline-flex; }
}
@media (max-width: 859px) {
  .menu-btn { display: grid; }
}
.lang-btn { width: 38px; height: 38px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lang-btn:hover { background: rgba(29, 26, 21, 0.05); color: var(--ink); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 14px 6px 6px; border: 1px solid var(--line-strong); border-radius: 999px; }
.user-chip i { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 11px; font-style: normal; }

.mmenu { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; background: rgba(16, 14, 10, 0.44); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.mmenu[hidden] { display: none; }
.mmenu:not([hidden]) { animation: mmFade 0.3s cubic-bezier(0.16,1,0.3,1); }
@keyframes mmFade { from { opacity: 0; } }
.mmenu-panel { width: min(340px, 88vw); height: 100dvh; overflow-y: auto; background: var(--paper); display: flex; flex-direction: column; padding: 20px 24px calc(28px + env(safe-area-inset-bottom, 0px)); box-shadow: -30px 0 70px -40px rgba(9, 44, 35, 0.55); }
.mmenu:not([hidden]) .mmenu-panel { animation: mmSlide 0.42s cubic-bezier(0.16,1,0.3,1); }
@keyframes mmSlide { from { transform: translateX(104%); } }
.mmenu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.mmenu nav { display: flex; flex-direction: column; }
.mmenu nav a { font-family: var(--display); font-size: 30px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); transition: color 0.2s, padding-left 0.3s cubic-bezier(0.16,1,0.3,1); }
.mmenu:not([hidden]) nav a { animation: mmLink 0.55s cubic-bezier(0.16,1,0.3,1) both; }
.mmenu nav a:nth-child(2) { animation-delay: 0.05s; }
.mmenu nav a:nth-child(3) { animation-delay: 0.1s; }
.mmenu nav a:nth-child(4) { animation-delay: 0.15s; }
.mmenu nav a:nth-child(5) { animation-delay: 0.2s; }
.mmenu nav a:nth-child(n+6) { animation-delay: 0.25s; }
@keyframes mmLink { from { opacity: 0; transform: translateY(16px); } }
.mmenu nav a:hover { color: var(--accent); padding-left: 8px; }
.mmenu a:last-of-type { border-bottom: 0; }
.mmenu-foot { margin-top: auto; display: flex; gap: 10px; }
body.menu-open { overflow: hidden; }

/* ---------- mobile bottom nav ---------- */
.mnav { display: none; }
@media (max-width: 820px) {
  .mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: color-mix(in srgb, var(--site-ivory, #F8F4EA) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--site-line, var(--line)); padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); }
  .mnav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 6px; border: 0; background: none; font-family: inherit; font-size: 10px; font-weight: 650; letter-spacing: 0.01em; color: #6c736c; text-decoration: none; cursor: pointer; transition: color 0.18s; -webkit-tap-highlight-color: transparent; }
  .mnav-item svg { transition: transform 0.22s var(--ease-out, cubic-bezier(.22,1,.36,1)), color 0.18s; }
  .mnav-item:active { color: var(--site-forest, var(--ink)); }
  .mnav-item:active svg { transform: scale(0.82); }
  .mnav-item.on { color: var(--site-forest, var(--ink)); }
  .mnav-item.on svg { color: var(--site-gold-ink, var(--accent)); transform: translateY(-1.5px); }
  .mnav-create { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; border: 0; background: none; font-family: inherit; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
  .mnav-create-ring { width: 54px; height: 54px; border-radius: 50%; background: var(--site-forest, var(--ink)); color: var(--site-gold, var(--gold)); display: grid; place-items: center; border: 2px solid var(--site-gold, var(--gold)); box-shadow: 0 12px 24px -8px rgba(8, 42, 32, 0.55), inset 0 0 0 1px rgba(248, 244, 234, 0.12); transform: translateY(-16px); position: relative; z-index: 2; transition: transform 0.28s var(--ease-out, cubic-bezier(.22,1,.36,1)); }
  .mnav-create-ring svg { transition: transform 0.3s var(--ease-out, cubic-bezier(.22,1,.36,1)); }
  .mnav-create:active .mnav-create-ring { transform: translateY(-16px) scale(0.92); }
  body.sheet-open .mnav-create-ring svg { transform: rotate(135deg); }
  .mnav-create-t { font-size: 10px; font-weight: 750; letter-spacing: 0.02em; color: var(--site-forest, var(--ink)); }
  body.has-mnav .site-foot { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .toasts { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- mobile create sheet ---------- */
.msheet { position: fixed; inset: 0; z-index: 58; background: rgba(16, 14, 10, 0.4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; align-items: flex-end; }
.msheet[hidden] { display: none; }
.msheet:not([hidden]) { animation: sheetFade 0.25s ease; }
.msheet-panel { width: 100%; background: var(--paper, #fffdf7); border-radius: 22px 22px 0 0; padding: 10px 18px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -20px 50px -20px rgba(9, 44, 35, 0.4); }
.msheet:not([hidden]) .msheet-panel { animation: sheetUp 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
.msheet-grab { display: block; width: 38px; height: 4px; border-radius: 999px; background: rgba(9, 44, 35, 0.22); margin: 4px auto 12px; }
.msheet-title { font-family: var(--display); font-size: 19px; color: var(--site-forest, var(--ink)); margin: 0 0 12px; }
.msheet-item { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border: 1px solid var(--site-line, var(--line)); border-radius: 15px; text-decoration: none; color: var(--site-forest, var(--ink)); margin-bottom: 9px; background: #fffefb; transition: transform 0.15s, border-color 0.15s, background 0.15s; -webkit-tap-highlight-color: transparent; }
.msheet-item:active { transform: scale(0.975); background: #f6f0e2; border-color: rgba(179, 138, 62, 0.45); }
.msheet-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(179, 138, 62, 0.13); color: var(--site-gold-ink, var(--accent)); flex-shrink: 0; }
.msheet-item--accent { background: var(--site-forest, var(--ink)); border-color: var(--site-forest, var(--ink)); color: #f5efe0; }
.msheet-item--accent .msheet-ico { background: rgba(245, 239, 224, 0.14); color: var(--site-gold, var(--gold)); }
.msheet-item--accent .msheet-txt small { color: rgba(245, 239, 224, 0.72); }
.msheet-item--accent:active { background: #0d3527; }
.msheet-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.msheet-txt b { font-size: 14.5px; font-weight: 650; }
.msheet-txt small { font-size: 11.5px; color: var(--muted); }
.msheet-go { color: var(--site-gold-ink, var(--accent)); font-size: 15px; }
.msheet-item--accent .msheet-go { color: var(--site-gold, var(--gold)); }
body.sheet-open { overflow: hidden; }
@keyframes sheetFade { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #cfc8ba; margin-top: 96px; border-top: 2px solid var(--gold); }
.foot-in { padding-top: 64px; padding-bottom: 32px; display: grid; gap: 40px; }
@media (min-width: 800px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-brand p { margin-top: 12px; font-size: 13px; max-width: 260px; color: #9d9585; }
.foot-col h5 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 16px; letter-spacing: 0; color: #d9d1bf; margin-bottom: 14px; }
html[lang="bn"] .foot-col h5 { font-family: var(--bn-serif); font-style: normal; }
.foot-col a { position: relative; display: inline-block; font-size: 14px; text-decoration: none; padding: 5px 0; color: #cfc8ba; }
.foot-col a::after { content: ''; position: absolute; left: 0; bottom: 3px; height: 1px; width: 0; background: currentColor; transition: width 0.3s var(--ease-out); }
.foot-col a:hover { color: #fff; }
.foot-col a:hover::after { width: 100%; }
.foot-bar { border-top: 1px solid #33302a; padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12px; color: #8b8474; }

/* ---------- template card — matted plate: paper tray + inner plate ---------- */
.tpl-card { text-decoration: none; display: block; }
.tpl-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; background: linear-gradient(180deg, #fffdf8, var(--paper-deep)); border: 1px solid var(--line); padding: 10px; box-shadow: 0 1px 2px rgba(29,26,21,0.05), 0 16px 36px -14px rgba(29,26,21,0.22); transition: box-shadow 0.4s cubic-bezier(0.16,1,0.3,1), transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.tpl-frame::before { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(29,26,21,0.05); pointer-events: none; }
.tpl-frame .pv-slot { position: absolute; inset: 10px; display: block; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(29,26,21,0.14); }
.tpl-frame .pv-slot:empty { background: linear-gradient(105deg, var(--surface) 38%, #efe9db 50%, var(--surface) 62%) 0 0/220% 100%; animation: pvShimmer 1.5s ease-in-out infinite; }
@keyframes pvShimmer { to { background-position: -120% 0; } }
.tpl-card:active .tpl-frame { transform: scale(0.985); }
a, button, [role="button"] { touch-action: manipulation; }
.tpl-frame .tp-wrap { transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.tpl-card:hover .tpl-frame { box-shadow: 0 2px 4px rgba(29,26,21,0.06), 0 30px 56px -16px rgba(29,26,21,0.32); transform: translateY(-6px); }
.tpl-card:hover .tp-wrap { transform: scale(1.035); }
.tpl-lock { position: absolute; top: 18px; left: 18px; z-index: 5; }
.tpl-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 15px 4px 0; }
.tpl-meta h3 { font-family: var(--display); font-size: 20px; letter-spacing: -0.01em; }
.tpl-meta p { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-fav { position: absolute; top: 18px; right: 18px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.92); backdrop-filter: blur(4px); display: grid; place-items: center; font-size: 15px; color: var(--muted); box-shadow: 0 2px 10px rgba(29,26,21,0.16), inset 0 0 0 1px rgba(29,26,21,0.06); transition: transform 0.2s, color 0.2s; }
.tpl-fav.on { color: var(--danger); animation: favPop 0.45s var(--ease-out); }
@keyframes favPop { 40% { transform: scale(1.22); } }
.tpl-fav:hover { color: var(--danger); transform: scale(1.08); }
.tpl-fav:active { transform: scale(0.9); }

/* ---------- catalog ---------- */
.filter-bar { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 1px 2px rgba(29,26,21,0.04), 0 14px 34px -18px rgba(29,26,21,0.16); display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; padding: 14px 16px; margin-bottom: 44px; }
.filters { display: contents; }
.search-box { position: relative; flex: 1; min-width: 210px; }
.search-box input { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); padding: 11px 16px 11px 40px; font-size: 14px; transition: border-color 0.18s, box-shadow 0.18s; }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box::before { content: '⌕'; position: absolute; left: 15px; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 18px; }
.filters select { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); padding: 11px 30px 11px 14px; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color 0.18s, box-shadow 0.18s; }
.filters select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filters .chip--fav { border-radius: 12px; padding: 9px 15px; }
.strip-div { display: none; }
.cat-strip { display: flex; gap: 8px; flex-basis: 100%; order: 10; overflow-x: auto; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
@media (max-width: 899px) {
  .filter-bar .search-box { flex-basis: 100%; }
  .filters { display: flex; align-items: center; gap: 8px; flex-basis: 100%; overflow-x: auto; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); scrollbar-width: none; mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
  .filters::-webkit-scrollbar { display: none; }
  .filters .cat-strip { display: contents; }
  .strip-div { display: block; width: 1px; height: 22px; background: var(--line-strong); flex-shrink: 0; margin: 0 2px; }
  .filters select, .filters .chip--fav { flex-shrink: 0; border-radius: 999px; }
  .filters select { padding: 9px 28px 9px 13px; font-size: 12.5px; }
  .filters .chip--fav { padding: 8px 14px; }
}
.tpl-grid { display: grid; gap: 34px 26px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.empty { text-align: center; padding: 80px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.empty::before { content: '✦'; display: block; font-size: 22px; color: var(--gold); margin-bottom: 14px; }
.empty h3 { font-family: var(--display); font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--muted); font-size: 14px; }

/* ---------- hero & homepage ---------- */
.hero { position: relative; overflow: hidden; background: #17130d; color: #f2ecdf; }
.hero-tex { position: absolute; inset: 0; background-image: url('../assets/art/girih-tile.png'); background-size: 300px; opacity: 0.055; pointer-events: none; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(60% 55% at 78% 30%, rgba(201,163,92,0.16), transparent 70%), radial-gradient(50% 45% at 12% 85%, rgba(14,92,70,0.2), transparent 70%); pointer-events: none; }
.hero-in { position: relative; padding: 128px 24px 108px; }
/* DOM order is copy → stage → actions: on mobile the image sits between
   headline and CTAs; on desktop grid-areas pins stage right of both. */
.hero-grid { display: grid; gap: 44px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; grid-template-areas: "copy stage" "actions stage"; gap: 0 56px; align-content: center; }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-stage { grid-area: stage; align-self: center; }
  .hero-actions { grid-area: actions; align-self: start; }
}
.hero .eyebrow { color: var(--gold); display: flex; align-items: center; gap: 14px; }
.hero .eyebrow::after { content: ''; height: 1px; width: 64px; background: linear-gradient(90deg, rgba(201,163,92,0.7), transparent); }
.hero h1 { font-family: var(--display); font-size: clamp(3.1rem, 8.4vw, 7.1rem); line-height: 0.99; letter-spacing: -0.028em; font-weight: 500; color: #f6f1e6; }
.hero h1 em { color: var(--gold); font-weight: 500; font-style: italic; }
.hero-sub { margin-top: 26px; font-size: 17px; line-height: 1.7; color: #b3a890; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero .btn--outline { border-color: rgba(242,236,223,0.3); color: #f2ecdf; }
.hero .btn--outline:hover { border-color: #f2ecdf; background: transparent; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; padding-top: 26px; border-top: 1px solid rgba(242,236,223,0.14); }
.hero-stats > div + div { border-left: 1px solid rgba(242,236,223,0.14); padding-left: 34px; }
.hero-stats b { display: block; font-family: var(--display); font-size: 30px; color: #f6f1e6; }
.hero-stats span { font-size: 12.5px; color: #8f8570; }

.hero-stage { position: relative; min-height: 560px; }
.hero-halo { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 76%; height: 92%; border: 1px solid rgba(201,163,92,0.42); border-bottom: 0; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, rgba(201,163,92,0.09), transparent 62%), url('../assets/art/girih-tile.png') center / 300px; animation: haloIn 1.4s cubic-bezier(0.16,1,0.3,1) 0.3s both; }
@keyframes haloIn { from { opacity: 0; } }
.hero-halo::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(201,163,92,0.2); border-bottom: 0; border-radius: inherit; }
.hero-halo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 70% at 50% 30%, transparent 30%, var(--ink) 88%); }
.hero-stage::after { content: ''; position: absolute; left: 50%; bottom: -3%; transform: translateX(-50%); width: 84%; height: 56px; background: radial-gradient(50% 55% at 50% 50%, rgba(0,0,0,0.55), transparent 72%); filter: blur(8px); pointer-events: none; }
.hero-fan { position: absolute; inset: 0; }
.fan-card { position: absolute; bottom: 0; }
.fan-card .tpl-frame { border-color: rgba(201,163,92,0.32); box-shadow: 0 34px 70px -18px rgba(0,0,0,0.62), 0 4px 14px rgba(0,0,0,0.4); animation: fanFloat 7.5s ease-in-out infinite; }
.fan-card .tpl-frame::after { display: none; }
@keyframes fanFloat { 50% { transform: translateY(-8px); } }
.fan-l .tpl-frame { animation-duration: 8.6s; animation-delay: -2.2s; }
.fan-r .tpl-frame { animation-duration: 6.8s; animation-delay: -4.1s; }
@keyframes dealC { from { opacity: 0; transform: translateX(-50%) translateY(46px) scale(0.93); } }
@keyframes dealL { from { opacity: 0; transform: translateX(108%) translateY(34px) rotate(0deg); } }
@keyframes dealR { from { opacity: 0; transform: translateX(-108%) translateY(34px) rotate(0deg); } }
.fan-c { width: 52%; left: 50%; transform: translateX(-50%); z-index: 3; animation: dealC 0.9s cubic-bezier(0.16,1,0.3,1) 0.45s both; }
.fan-c .tpl-frame { transform: none; }
.fan-l { width: 45%; left: 4%; bottom: 7%; transform: rotate(-7deg); transform-origin: 90% 100%; z-index: 1; animation: dealL 0.85s cubic-bezier(0.16,1,0.3,1) 0.62s both; }
.fan-r { width: 45%; right: 3%; bottom: 7%; transform: rotate(7deg); transform-origin: 10% 100%; z-index: 2; animation: dealR 0.85s cubic-bezier(0.16,1,0.3,1) 0.54s both; }
.hero-seal { position: absolute; top: -14px; right: 4%; width: 92px; height: 92px; border-radius: 50%; border: 1px solid rgba(201,163,92,0.6); display: grid; place-items: center; background: radial-gradient(circle at 34% 30%, #2b241a, #17130d); box-shadow: var(--shadow-2), inset 0 0 0 6px rgba(201,163,92,0.12); }
.hero-seal::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(201,163,92,0.4); animation: sealOrbit 36s linear infinite; }
@keyframes sealOrbit { to { transform: rotate(360deg); } }
.hero-seal i { font-style: normal; font-family: var(--display); font-size: 15px; color: var(--gold); letter-spacing: 0.12em; text-align: center; line-height: 1.3; }
@media (hover: hover) and (min-width: 900px) {
  .hero-fan { transform: perspective(1300px) rotateY(calc(var(--mx, 0) * 5deg)) rotateX(calc(var(--my, 0) * -4deg)); transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
  .hero-halo { transform: translateX(-50%) translate(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -7px)); transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
  .hero-seal { transform: translate(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 6px)); transition: transform 0.45s cubic-bezier(0.16,1,0.3,1); }
}
@media (max-width: 899px) {
  .hero-in { padding: 64px 24px 60px; }
  .hero-stage { min-height: 400px; }
  .hero-halo { width: 88%; height: 90%; }
  .fan-c { width: 56%; }
  .fan-l { width: 44%; left: 1%; }
  .fan-r { width: 44%; right: 0; }
  .hero-seal { width: 72px; height: 72px; right: 3%; }
}
@media (max-width: 560px) {
  .hero-in { padding: 52px 20px 48px; }
  .hero-stage { min-height: 330px; }
  .hero-seal { width: 60px; height: 60px; top: -8px; }
  .hero-seal i { font-size: 12px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

/* occasion marquee */
.marquee { position: relative; border-top: 1px solid rgba(242,236,223,0.12); overflow: hidden; padding: 20px 0; }
.marquee-in { display: flex; gap: 44px; white-space: nowrap; animation: marq 36s linear infinite; width: max-content; }
.marquee-in span { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: #a4937a; display: inline-flex; align-items: center; gap: 44px; }
.marquee-in span::after { content: '✦'; color: var(--gold); letter-spacing: 0; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-in { animation: none; } }

.strip { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x proximity; scroll-padding-left: 4px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip > * { flex: 0 0 clamp(264px, 26vw, 372px); scroll-snap-align: start; }
.strip-note { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } }

/* dark contrast band */
.band-dark { position: relative; background: #17130d; color: #f2ecdf; overflow: hidden; }
.band-dark::before { content: ''; position: absolute; inset: 0; background-image: url('../assets/art/girih-tile.png'); background-size: 300px; opacity: 0.05; pointer-events: none; }
.band-dark > .wrap { position: relative; }
.band-dark .eyebrow { color: var(--gold); }
.band-title { font-size: clamp(2.4rem, 5.2vw, 3.9rem); margin-top: 14px; line-height: 1.02; letter-spacing: -0.02em; }
.band-sub { margin-top: 18px; font-size: 16px; line-height: 1.75; color: #b3a890; max-width: 48ch; }
.band-dark .feat-list { gap: 0; margin-top: 40px; border-top: 1px solid rgba(242,236,223,0.12); }
.band-dark .feat { padding: 24px 0; border-bottom: 1px solid rgba(242,236,223,0.12); align-items: baseline; gap: 22px; }
.band-dark .feat-num { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--gold); flex-shrink: 0; width: 34px; }
.band-dark .feat h4 { font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.band-dark .feat p { font-size: 14px; color: #9c9178; margin-top: 5px; }
.band-dark .phone { background: linear-gradient(155deg, #52493d, #2a241c 50%, #181209); box-shadow: 0 40px 90px -20px rgba(0,0,0,0.7), 0 0 110px rgba(201,163,92,0.10), inset 0 1px 1px rgba(255,255,255,0.3), 0 0 0 1px rgba(242,236,223,0.16); }
.band-dark .phone-in { border-color: rgba(255,255,255,0.08); }
/* device trio + web pane — guest journey demo reel */
.band-viewbar { display: flex; justify-content: flex-end; width: 100%; max-width: 640px; margin: 0 auto 14px; }
#phonesPane, #webPane { min-height: 580px; display: flex; flex-direction: column; justify-content: flex-start; }
.band-dark .ed-view { border-color: rgba(242,236,223,0.18); background: rgba(242,236,223,0.05); }
.band-dark .ed-view button { color: #a89d85; }
.band-dark .ed-view button.on { background: var(--gold); color: #17130d; }
.phones { display: flex; gap: 16px; justify-content: center; align-items: center; }
.phone-dots { display: none; justify-content: center; gap: 8px; margin-top: 20px; }
.phone-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(242, 236, 223, 0.25); transition: width 0.3s cubic-bezier(0.22, 0.9, 0.3, 1), background 0.3s; cursor: pointer; }
.phone-dots i.on { width: 22px; background: var(--gold, #cfa653); }
.phones .phone { flex: 1 1 0; width: auto; max-width: 212px; margin: 0; }
.phones .phone:nth-child(2) { transform: translateY(30px); }
.phones .phone-in { aspect-ratio: 9 / 19.3; height: auto; }
.webpane { width: 100%; max-width: 640px; margin: 0 auto; min-width: 0; }
.webpane .dev-web, .webpane .dev-chrome, .webpane .dev-tabs, .webpane .dev-url { min-width: 0; }
.webpane .dev-web .dev-screen { max-height: 520px; }
/* laptop base — hinge + deck lip sells the device silhouette */
.webpane .dev-web { border-radius: 14px; }
/* real browser tabs inside the chrome bar */
.dev-tabs { display: flex; gap: 3px; flex-shrink: 0; }
.dev-tabs button { border: 0; font-family: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: transparent; cursor: pointer; transition: background 0.15s, color 0.15s; }
.dev-tabs button:hover { background: rgba(29,26,21,0.08); }
.dev-tabs button.on { background: var(--ink); color: var(--paper); }
@media (min-width: 900px) { .band-dark .split { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }
.split > .reveal-io { min-width: 0; }
/* real mobile → swipeable phone carousel with peek + dots */
@media (max-width: 720px) {
  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 13%; padding: 14px 13%; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone-dots { display: flex; }
  .phones .phone:nth-child(2) { transform: none; }
  .phones .phone { flex: 0 0 74%; width: auto; max-width: none; scroll-snap-align: center; border-radius: 11.4% / 5.4%; background: linear-gradient(155deg, #52493d, #2a241c 50%, #181209); box-shadow: 0 40px 90px -20px rgba(0,0,0,0.7), 0 0 110px rgba(201,163,92,0.10), inset 0 1px 1px rgba(255,255,255,0.3), 0 0 0 1px rgba(242,236,223,0.16); }
  #phonesPane, #webPane { min-height: 660px; }
  .phones .phone::before, .phones .phone::after { display: block; }
  .phones .phone .phone-in { margin: 2cqw; border-radius: 9.4cqw; }
  .webpane .dev-web .dev-screen { min-height: 0; }
}
.phone-glare { position: absolute; inset: 2cqw; border-radius: 9.4cqw; overflow: hidden; pointer-events: none; z-index: 5; }
.phone-glare::before { content: ''; position: absolute; top: -25%; left: -16%; width: 55%; height: 150%; transform: rotate(9deg); background: linear-gradient(100deg, transparent, rgba(255,255,255,0.05) 42%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 58%, transparent); }

.feat-list { display: grid; gap: 18px; margin-top: 28px; }
.feat { display: flex; gap: 16px; }
.feat i { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-style: normal; font-size: 16px; }
.feat h4 { font-size: 15px; font-weight: 600; }
.feat p { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* occasion index */
.occ-list { border-top: 1px solid var(--line-strong); }
.occ-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 20px; padding: 34px 10px 34px 4px; border-bottom: 1px solid var(--line); text-decoration: none; border-radius: 14px; transition: background 0.25s, padding-left 0.3s cubic-bezier(0.16,1,0.3,1); }
.occ-row:hover { background: var(--surface); padding-left: 20px; box-shadow: var(--shadow-1); }
.occ-num { font-family: var(--display); font-style: italic; font-size: 19px; color: var(--muted); }
.occ-name { font-family: var(--display); font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -0.02em; line-height: 1.02; display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; transition: color 0.25s; }
.occ-row:hover .occ-name { color: var(--accent); }
.occ-sub { font-family: var(--body); font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.occ-arr { font-size: 26px; color: var(--line-strong); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), color 0.25s; }
.occ-row:hover .occ-arr { transform: translateX(6px); color: var(--accent); }

/* print band */
.print-band { background: var(--paper-deep); border-block: 1px solid var(--line); }
.print-photo img { border-radius: 999px 999px 22px 22px; border: 1px solid var(--line-strong); width: 100%; height: 440px; object-fit: cover; box-shadow: var(--shadow-1); }
.print-photo figcaption { margin-top: 14px; text-align: center; font-family: var(--display); font-style: italic; font-size: 14px; color: var(--muted); }
.print-band h2 em { font-style: italic; color: var(--gold-deep); }

/* final CTA — dark dramatic closer */
.cta-final { position: relative; background: #17130d; color: #f2ecdf; text-align: center; overflow: hidden; padding: 144px 0 156px; }
.cta-tex { position: absolute; inset: 0; background-image: url('../assets/art/girih-tile.png'); background-size: 280px; opacity: 0.06; pointer-events: none; }
.cta-final .wrap { position: relative; }
.cta-final .eyebrow { color: var(--gold); }
.cta-final h2 { font-family: var(--display); font-size: clamp(2.7rem, 6.6vw, 5rem); line-height: 1.01; letter-spacing: -0.025em; margin-top: 18px; }
.cta-final .btn { margin-top: 38px; }
/* the doorway — double-keyline arch, bookends the hero halo */
.cta-arch { position: relative; max-width: 780px; margin: 0 auto; padding: 190px 44px 64px; border-bottom: 1px solid rgba(201,163,92,0.45); }
.cta-arch::before { content: ''; position: absolute; inset: 0 0 -1px; border: 1px solid rgba(201,163,92,0.45); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.cta-arch::after { content: ''; position: absolute; inset: 12px 12px -1px; border: 1px solid rgba(201,163,92,0.2); border-bottom: 0; border-radius: inherit; pointer-events: none; }
@media (max-width: 640px) {
  .cta-final { padding: 92px 0 100px; }
  .cta-arch { max-width: 340px; padding: 104px 26px 44px; }
}

/* ---------- device mockup frames ---------- */
/* stage centers a mockup inside any scroll container */
.devstage { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 28px 18px 34px; }
.dev-cap { font-size: 11.5px; letter-spacing: 0.03em; color: var(--muted); }

/* phone — thin titanium bezel, island notch; proportions scale with frame width via cqw */
.dev-phone, .phone { position: relative; width: min(340px, 92%); margin: 0 auto; border-radius: 11.4% / 5.4%; padding: 0; background: linear-gradient(155deg, #373129, #1f1a15 50%, #120e0a); box-shadow: 0 30px 60px -24px rgba(24, 17, 9, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(18, 13, 8, 0.65); container-type: inline-size; }
.dev-phone::before, .phone::before { content: ""; position: absolute; top: 5.4cqw; left: 50%; transform: translateX(-50%); width: 25cqw; height: 5.8cqw; border-radius: 999px; background: #0a0705; z-index: 6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.dev-phone::after, .phone::after { content: ""; position: absolute; right: -2px; top: 33cqw; width: 2.5px; height: 17cqw; border-radius: 2px; background: #141009; }
.dev-phone .dev-screen, .phone-in { position: relative; margin: 2cqw; border-radius: 9.4cqw; overflow: hidden; overflow-y: auto; overscroll-behavior: contain; aspect-ratio: 9 / 19.3; background: var(--inv-bg, #fff); scrollbar-width: none; }
.dev-phone .dev-screen::-webkit-scrollbar, .phone-in::-webkit-scrollbar { display: none; }
.phone-in { aspect-ratio: auto; height: 560px; }

/* browser — window chrome with dots + url pill */
.dev-web { width: 100%; max-width: 1080px; border-radius: 14px; background: var(--surface); box-shadow: 0 30px 70px -26px rgba(24, 17, 9, 0.42), 0 0 0 1px rgba(29, 26, 21, 0.12); overflow: hidden; }
.dev-chrome { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: linear-gradient(180deg, #f4efe6, #e9e2d5); border-bottom: 1px solid rgba(29, 26, 21, 0.12); }
.dev-dots { display: flex; gap: 7px; flex-shrink: 0; }
.dev-dots i { width: 11px; height: 11px; border-radius: 50%; }
.dev-dots i:nth-child(1) { background: #d06a54; }
.dev-dots i:nth-child(2) { background: #dfb14a; }
.dev-dots i:nth-child(3) { background: #6ea06b; }
.dev-nav { display: flex; gap: 12px; color: var(--muted); font-size: 13px; flex-shrink: 0; }
.dev-url { flex: 1; max-width: 480px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(29, 26, 21, 0.1); border-radius: 8px; padding: 6px 16px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.dev-url::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #6ea06b; box-shadow: 0 0 0 2px rgba(110, 160, 107, 0.18); }
.dev-url span { overflow: hidden; text-overflow: ellipsis; }
.dev-web .dev-screen { aspect-ratio: 16 / 10.4; height: auto; max-height: min(74vh, 720px); min-height: 380px; overflow-y: auto; overscroll-behavior: contain; background: var(--inv-bg, #fff); scrollbar-width: none; }
.dev-web .dev-screen::-webkit-scrollbar { display: none; }
@media (max-width: 560px) { .dev-url { max-width: none; } .dev-nav { display: none; } .dev-cap { letter-spacing: 0.12em; } .dev-chrome { flex-wrap: wrap; row-gap: 8px; padding: 10px 12px; } .dev-tabs { order: 4; flex-basis: 100%; display: flex; overflow-x: auto; scrollbar-width: none; } .dev-tabs::-webkit-scrollbar { display: none; } .dev-tabs button { flex: 1; white-space: nowrap; font-size: 10px; padding: 4px 8px; border-radius: 8px; } }

/* a fake phone bezel inside a real phone reads broken — flatten to a clean matted card */
@media (max-width: 720px) {
  .dev-phone, .phone { width: min(360px, 100%); border-radius: 26px; background: linear-gradient(180deg, #fffdf8, var(--paper-deep)); box-shadow: var(--shadow-2), 0 0 0 1px rgba(29, 26, 21, 0.08); }
  .dev-phone::before, .dev-phone::after, .phone::before, .phone::after { display: none; }
  .dev-phone .dev-screen, .phone-in { border-radius: 18px; }
  .devstage { padding: 18px 10px 26px; }
}
/* dark band variant keeps contrast */
@media (max-width: 720px) { .band-dark .phone { background: #221c14; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 163, 92, 0.3); } }


.steps { counter-reset: s; display: grid; gap: 28px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step { counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 44px; color: var(--line-strong); }
.step h3 { font-size: 18px; font-weight: 600; margin: 10px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }

.faq { max-width: 720px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 22px; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 60ch; }

.cta-band { border-top: 1px solid var(--line); text-align: center; }
.cta-band h2 { font-family: var(--display); font-size: clamp(1.9rem, 4.4vw, 3rem); }
.cta-band p { margin: 14px auto 0; color: var(--muted); max-width: 46ch; }

/* ---------- detail page ---------- */
.detail-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: 1fr 400px; align-items: start; } .detail-sticky { position: sticky; top: calc(var(--head-h) + 20px); } }
.detail-preview { min-height: 400px; }
.detail-preview #preview { min-width: 0; }
.chip-line { display: flex; flex-wrap: wrap; gap: 8px; }
.lock-box { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--gold-soft); padding: 16px; font-size: 13px; }

/* ---------- auth ---------- */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 96px 24px 110px; }
.auth-wrap h1 { font-family: var(--display); font-size: 34px; text-align: center; letter-spacing: -0.01em; }
.auth-wrap h1::before { content: '✦'; display: block; color: var(--gold); font-size: 15px; margin-bottom: 16px; }
.auth-wrap > p { text-align: center; color: var(--muted); font-size: 14px; margin: 10px 0 30px; }
.auth-card { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: 34px 30px; box-shadow: 0 0 0 6px rgba(241,235,222,0.75), 0 0 0 7px var(--line), var(--shadow-1); }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 22px; }
.demo-note { margin-top: 22px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 12px 16px; font-size: 12px; color: var(--muted); background: rgba(241,235,222,0.4); }
.demo-note code { background: var(--paper-deep); padding: 1px 6px; border-radius: 4px; }

/* ---------- dashboard ---------- */
.dash { display: grid; gap: 0; }
.dash > * { min-width: 0; }
@media (min-width: 900px) { .dash { grid-template-columns: 232px 1fr; } .dash-side { position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); border-right: 1px solid var(--line); padding: 30px 16px; overflow-y: auto; background: rgba(241,235,222,0.35); } .dash-main { padding: 40px 36px 80px; } .dash-main > * { max-width: 1120px; } }
@media (max-width: 899px) { .dash-side { border-bottom: 1px solid var(--line); padding: 12px 20px; display: flex; gap: 4px; overflow-x: auto; } .dash-main { padding: 24px 20px 60px; } .dash-side-label { display: none; } }
.dash-side-label { font-family: var(--display); font-style: italic; font-size: 13px; font-weight: 500; color: var(--muted); padding: 0 13px 12px; }
html[lang="bn"] .dash-side-label { font-family: var(--bn); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.dash-link { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.dash-link:hover { background: rgba(29,26,21,0.05); color: var(--ink); }
.dash-link.on { background: var(--ink); color: var(--paper); box-shadow: 0 2px 8px rgba(28,24,19,0.2); }
.dash-link:active { transform: scale(0.98); }
.dash-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dash-title h1 { font-family: var(--display); font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.01em; }

.card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 1px 2px rgba(28,24,19,0.04); }
.card-pad { padding: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 30px; }
.stat { padding: 22px 20px; position: relative; overflow: hidden; border-radius: var(--r-md); }
.stat::before { content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.stat b { display: block; font-family: var(--display); font-size: 34px; letter-spacing: -0.02em; }
.stat span { font-size: 12px; color: var(--muted); }
.inv-card { display: grid; grid-template-columns: 132px 1fr; gap: 0; overflow: hidden; margin-bottom: 16px; transition: box-shadow 0.25s, transform 0.25s; }
.inv-card:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); }
.inv-card .thumb { border-right: 1px solid var(--line); overflow: hidden; position: relative; background: var(--paper-deep); }
.inv-card .thumb .pv-slot { position: absolute; inset: 0; display: block; }
.inv-card .body { padding: 18px 20px; min-width: 0; }
.inv-card h3 { font-size: 16px; font-weight: 600; font-family: var(--display); }
.inv-card .meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.inv-card .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.inv-card .acts a, .inv-card .acts button { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.inv-card .acts a:hover, .inv-card .acts button:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
@media (max-width: 560px) { .inv-card { grid-template-columns: 96px 1fr; } }
.status { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 3px 10px; border-radius: 999px; }
.status--draft { background: var(--paper-deep); color: var(--muted); }
.status--published { background: var(--accent-soft); color: var(--accent-deep); }
.status--archived { background: var(--paper-deep); color: var(--muted); }
.status--declined { background: color-mix(in srgb, var(--danger) 9%, var(--surface)); color: var(--danger); }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: 0.02em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background 0.15s; }
.tbl tbody tr:hover { background: var(--paper); }
.tbl td a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color 0.15s, color 0.15s; }
.tbl td a:hover { color: var(--accent); border-color: var(--accent); }
.tbl-wrap { overflow-x: auto; }
@media (max-width: 700px) {
  .tbl-wrap .tbl { min-width: 580px; }
  .tbl-wrap { mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
}

/* ---------- editor ---------- */
.editor { display: grid; grid-template-rows: auto 1fr; height: calc(100dvh - var(--head-h)); }
.ed-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ed-bar h2 { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-bar .save { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 7px; }
.ed-bar .save::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; }
.ed-bar .save[data-state="saving"]::before { background: var(--gold); animation: savePulse 1s ease-in-out infinite; }
.ed-bar .save[data-state="saved"]::before { background: var(--accent); }
.ed-bar .save[data-state="error"]::before { background: var(--danger); }
@keyframes savePulse { 50% { opacity: 0.3; } }
.ed-bar .eyebrow { font-family: var(--body); font-style: normal; font-weight: 600; font-size: 11px; color: var(--muted); }
.ed-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (max-width: 560px) { .ed-bar .eyebrow { font-size: 10px; } .ed-bar h2 { max-width: 110px; } }
.ed-tools > button:not(.btn) { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.ed-tools > button:not(.btn):hover:not([disabled]) { background: rgba(29,26,21,0.05); color: var(--ink); }
.ed-tools > button:not(.btn)[disabled] { opacity: 0.35; cursor: default; }
.ed-work { display: grid; overflow: hidden; }
.ed-work > * { min-width: 0; }
@media (min-width: 960px) { .ed-work { grid-template-columns: 360px 1fr; } }
@media (max-width: 959px) { .ed-work { grid-template-rows: auto 1fr; } .ed-panel { order: 2; } .ed-canvas { order: 1; height: 52dvh; } }
.ed-panel { border-right: 1px solid var(--line); overflow-y: auto; background: var(--paper); }
.ed-panel nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.ed-panel nav button { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px; color: var(--muted); border: 1px solid transparent; }
.ed-panel nav button.on { background: var(--ink); color: var(--paper); }
.ed-sec { padding: 20px; }
.ed-sec h3 { font-family: var(--display); font-size: 19px; margin-bottom: 4px; }
.ed-sec > p { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.ed-canvas { overflow-y: auto; overflow-x: hidden; background: var(--paper-deep); min-width: 0; }
.ed-canvas .canvas-in { min-height: 100%; }
.ed-view { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.ed-view button { width: auto; height: auto; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.ed-view button.on { background: var(--ink); color: var(--paper); }
.ev-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 16px; margin-bottom: 14px; }
.ev-card .ev-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ev-card .ev-head b { font-size: 14px; }
.ev-card .ev-head button { font-size: 12px; color: var(--danger); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid button { position: relative; border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; aspect-ratio: 1; transition: border-color 0.18s, transform 0.18s var(--ease-out); }
.photo-grid button:hover { transform: scale(1.03); }
.photo-grid button.on { border-color: var(--accent); }
.photo-grid button.on::after { content: '✓'; position: absolute; right: 5px; bottom: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,0.35); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.hidden-tag { font-size: 10px; color: var(--muted); }
.sect-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.sect-toggle button[data-mv] { width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); font-size: 13px; display: grid; place-items: center; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.sect-toggle button[data-mv]:hover:not([disabled]) { background: var(--surface); color: var(--ink); border-color: var(--muted); }
.sect-toggle button[data-mv][disabled] { opacity: 0.3; cursor: default; }

/* ---------- modal / toast / confirm ---------- */
.modal-veil { position: fixed; inset: 0; z-index: 80; background: rgba(20, 18, 14, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border-radius: var(--r-lg); padding: 30px 28px; max-width: 420px; width: 100%; box-shadow: var(--shadow-2), inset 0 1px 0 #fff; animation: modalIn 0.35s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal::before { content: '✦'; display: block; color: var(--gold); font-size: 14px; margin-bottom: 14px; }
.modal h3 { font-family: var(--display); font-size: 20px; margin-bottom: 8px; }
.modal p { font-size: 14px; color: var(--muted); }
.modal .m-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 11px 22px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-2); animation: toastIn 0.3s var(--ease-out); display: flex; gap: 9px; align-items: center; }
.toast i { font-style: normal; font-weight: 800; font-size: 12px; }
.toast--ok i { color: #7fd99e; }
.toast--warn i { color: var(--gold); }
.toast--err { background: var(--danger); }
.toast--err i { color: rgba(255,255,255,0.85); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- invitation reveal overlay ---------- */
.reveal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: var(--rv-bg, #14100c); color: var(--rv-ink, #efe8da); text-align: center; padding: 24px; transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), visibility 0.7s; }
.reveal::before { content: ""; position: absolute; inset: 12px; border: 1px solid; border-color: color-mix(in srgb, currentColor 26%, transparent); border-radius: 4px; pointer-events: none; }
.reveal::after { content: ""; position: absolute; inset: 17px; border: 1px solid; border-color: color-mix(in srgb, currentColor 12%, transparent); border-radius: 2px; pointer-events: none; }
.reveal.open { opacity: 0; visibility: hidden; }
.reveal .rv-in { max-width: 360px; position: relative; }
/* staged entrance — frame draws first, then seal → names → line → actions */
.reveal::before, .reveal::after { animation: rvFrame 1s var(--ease-out) both; }
@keyframes rvFrame { from { opacity: 0; transform: scale(0.985); } }
.reveal .rv-in > * { animation: rvIn 0.85s var(--ease-out) both; }
.reveal .rv-seal { animation-delay: 0.15s; }
.reveal h1 { animation-delay: 0.3s; }
.reveal p { animation-delay: 0.42s; }
.reveal .rv-acts { animation-delay: 0.55s; }
@keyframes rvIn { from { opacity: 0; transform: translateY(16px); } }
.reveal .rv-in::before { content: "✦"; display: block; margin: 0 auto 20px; font-size: 15px; opacity: 0.55; animation: rvIn 0.85s var(--ease-out) 0.06s both; }
.reveal .rv-seal { width: 92px; height: 92px; margin: 0 auto 26px; border: 1px solid color-mix(in srgb, currentColor 60%, transparent); border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 20px; letter-spacing: 0.08em; box-shadow: 0 0 0 5px var(--rv-bg, #14100c), 0 0 0 6px color-mix(in srgb, currentColor 24%, transparent); }
.reveal h1 { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.25; margin-bottom: 10px; }
.reveal p { font-size: 13px; opacity: 0.7; margin-bottom: 30px; font-style: italic; }
.reveal button { border: 1px solid color-mix(in srgb, currentColor 55%, transparent); border-radius: 999px; padding: 13px 36px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: inherit; background: transparent; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.reveal button:hover { background: currentColor; color: var(--rv-bg); }

/* ---------- footer texture + mobile polish ---------- */
.site-foot { position: relative; overflow: hidden; }
.site-foot::before { content: ""; position: absolute; inset: 0; background-image: url('../assets/art/girih-tile.png'); background-size: 340px; opacity: 0.045; pointer-events: none; }
.site-foot .wrap { position: relative; }

@media (max-width: 799px) {
  .section { padding: 74px 0; }
  .sec-head { margin-bottom: 34px; padding-bottom: 18px; }
  .section-head { margin-bottom: 34px; }
  .cta-final { padding: 88px 0; }
  .print-photo img { height: 320px; }

  /* hero */
  .hero-grid { gap: 36px; }
  .hero-cta { flex-wrap: nowrap; gap: 10px; }
  .hero-cta .btn { flex: 1 1 0; justify-content: center; padding: 13px 10px; font-size: 14px; white-space: nowrap; }
  .hero-stats { gap: 20px; margin-top: 36px; }
  .hero-stats > div + div { padding-left: 20px; }

  /* occasions list — tighter rows, sub drops under the name */
  .occ-row { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 20px 8px 20px 2px; }
  .occ-name { font-size: 1.55rem; gap: 10px; }
  .occ-sub { flex-basis: 100%; }

  /* footer — dense two-column grid instead of a long wall of links */
  .site-foot { margin-top: 70px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 30px 22px; padding-top: 50px; padding-bottom: 26px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-brand p { max-width: none; }
  .foot-col h5 { padding-bottom: 9px; margin-bottom: 10px; border-bottom: 1px solid #2f2b24; }
  .foot-col a { font-size: 13.5px; padding: 4px 0; }
  .foot-bar { flex-direction: column; gap: 4px; text-align: center; padding-top: 16px; padding-bottom: 16px; }

  /* faq rows a touch lighter */
  .faq details { padding: 16px 0; }
  .faq summary { font-size: 15px; }
}

[hidden] { display: none !important; }

/* ---------- motion ---------- */
.rise-in { animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.rise-1 { animation-delay: 0.08s; } .rise-2 { animation-delay: 0.2s; } .rise-3 { animation-delay: 0.34s; } .rise-4 { animation-delay: 0.48s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.reveal-io { opacity: 0; transform: translateY(30px); filter: blur(5px); transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1), filter 0.85s cubic-bezier(0.16,1,0.3,1); }
.reveal-io.on { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal-io { opacity: 1; transform: none; filter: none; }
}
