/* ============================================================
   TCOMMUNITY — static site stylesheet
   5 themes · RTL · glass · animations
   ============================================================ */

/* ---------- Themes ---------- */
:root,
[data-theme="nebula"] {
  --radius: 1rem;
  --background: #08070f;
  --foreground: #f2f0fa;
  --card: #0e0c18;
  --popover: #12101f;
  --primary: #a78bfa;
  --secondary: #1c1830;
  --muted: #161327;
  --muted-foreground: #9a93b8;
  --accent: #1e1935;
  --accent-foreground: #e6e0f8;
  --destructive: #f43f5e;
  --border: rgba(167, 139, 250, 0.14);
  --input: rgba(167, 139, 250, 0.16);
  --ring: rgba(167, 139, 250, 0.55);
  --tp: #a78bfa;
  --tp2: #f0abfc;
  --on-tp: #14091f;
  --glow: rgba(167, 139, 250, 0.35);
  --glow2: rgba(240, 171, 252, 0.25);
  --surface-glass: rgba(20, 17, 34, 0.55);
  --grid-line: rgba(167, 139, 250, 0.07);
  --hero-orb1: rgba(139, 92, 246, 0.32);
  --hero-orb2: rgba(217, 70, 239, 0.22);
  --hero-orb3: rgba(236, 72, 153, 0.14);
}
[data-theme="aurora"] {
  --background: #050c0a;
  --foreground: #ecfdf5;
  --card: #0a1712;
  --popover: #0d1c16;
  --primary: #34d399;
  --secondary: #10231b;
  --muted: #0e1e17;
  --muted-foreground: #8db8a6;
  --accent: #12281e;
  --accent-foreground: #d1fae5;
  --destructive: #f43f5e;
  --border: rgba(52, 211, 153, 0.14);
  --input: rgba(52, 211, 153, 0.16);
  --ring: rgba(52, 211, 153, 0.55);
  --tp: #34d399;
  --tp2: #5eead4;
  --on-tp: #03130c;
  --glow: rgba(52, 211, 153, 0.35);
  --glow2: rgba(94, 234, 212, 0.22);
  --surface-glass: rgba(13, 26, 20, 0.55);
  --grid-line: rgba(52, 211, 153, 0.06);
  --hero-orb1: rgba(16, 185, 129, 0.28);
  --hero-orb2: rgba(45, 212, 191, 0.2);
  --hero-orb3: rgba(52, 211, 153, 0.12);
}
[data-theme="ember"] {
  --background: #0c0705;
  --foreground: #fff5ef;
  --card: #180e09;
  --popover: #1d110a;
  --primary: #fb923c;
  --secondary: #251409;
  --muted: #1d1008;
  --muted-foreground: #c2a18c;
  --accent: #2a170b;
  --accent-foreground: #ffedd5;
  --destructive: #f43f5e;
  --border: rgba(251, 146, 60, 0.16);
  --input: rgba(251, 146, 60, 0.18);
  --ring: rgba(251, 146, 60, 0.55);
  --tp: #fb923c;
  --tp2: #fb7185;
  --on-tp: #1c0d02;
  --glow: rgba(251, 146, 60, 0.35);
  --glow2: rgba(251, 113, 133, 0.25);
  --surface-glass: rgba(28, 16, 9, 0.55);
  --grid-line: rgba(251, 146, 60, 0.07);
  --hero-orb1: rgba(249, 115, 22, 0.3);
  --hero-orb2: rgba(244, 63, 94, 0.2);
  --hero-orb3: rgba(251, 191, 36, 0.12);
}
[data-theme="noir"] {
  --background: #060606;
  --foreground: #fafafa;
  --card: #101010;
  --popover: #141414;
  --primary: #fafafa;
  --secondary: #1c1c1c;
  --muted: #171717;
  --muted-foreground: #a3a3a3;
  --accent: #202020;
  --accent-foreground: #f5f5f5;
  --destructive: #f43f5e;
  --border: rgba(250, 250, 250, 0.12);
  --input: rgba(250, 250, 250, 0.14);
  --ring: rgba(250, 250, 250, 0.5);
  --tp: #fafafa;
  --tp2: #a3a3a3;
  --on-tp: #0a0a0a;
  --glow: rgba(250, 250, 250, 0.22);
  --glow2: rgba(163, 163, 163, 0.18);
  --surface-glass: rgba(18, 18, 18, 0.6);
  --grid-line: rgba(250, 250, 250, 0.05);
  --hero-orb1: rgba(255, 255, 255, 0.14);
  --hero-orb2: rgba(163, 163, 163, 0.1);
  --hero-orb3: rgba(255, 255, 255, 0.06);
}
[data-theme="daylight"] {
  --background: #f6f4fb;
  --foreground: #191323;
  --card: #ffffff;
  --popover: #ffffff;
  --primary: #8b5cf6;
  --secondary: #ede9fe;
  --muted: #efeaf8;
  --muted-foreground: #6d6584;
  --accent: #f3e8ff;
  --accent-foreground: #3b2a63;
  --destructive: #e11d48;
  --border: rgba(139, 92, 246, 0.16);
  --input: rgba(139, 92, 246, 0.16);
  --ring: rgba(139, 92, 246, 0.45);
  --tp: #8b5cf6;
  --tp2: #d946ef;
  --on-tp: #ffffff;
  --glow: rgba(139, 92, 246, 0.25);
  --glow2: rgba(217, 70, 239, 0.18);
  --surface-glass: rgba(255, 255, 255, 0.65);
  --grid-line: rgba(139, 92, 246, 0.08);
  --hero-orb1: rgba(167, 139, 250, 0.3);
  --hero-orb2: rgba(240, 171, 252, 0.28);
  --hero-orb3: rgba(217, 70, 239, 0.12);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--tp); color: var(--on-tp); }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.5; }

/* theme transition smoothing */
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background-color .6s ease, color .6s ease, border-color .6s ease,
    fill .6s ease, stroke .6s ease, box-shadow .6s ease !important;
}

/* scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--tp), var(--tp2));
  border-radius: 99px; border: 2px solid var(--background);
}
::-webkit-scrollbar-thumb:hover { background: var(--tp); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* ---------- Utilities ---------- */
.container { max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
.container-narrow { max-width: 56rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container-narrow { padding-inline: 1.5rem; } }
.section { padding-block: 6rem; }
@media (min-width: 768px) { .section { padding-block: 8rem; } }
.relative { position: relative; }

.text-gradient {
  background: linear-gradient(120deg, var(--tp) 20%, var(--tp2) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--border);
}
.bg-grid {
  background-image:
    linear-gradient(to left, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}
.btn-glow { box-shadow: 0 10px 32px -8px var(--glow), 0 2px 8px -2px var(--glow2); }
.card-hover-glow { transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease, border-color .45s ease; }
.card-hover-glow:hover {
  box-shadow: 0 20px 60px -12px var(--glow), 0 0 0 1px var(--ring);
  border-color: var(--ring);
}
.mask-fade-x {
  -webkit-mask-image: linear-gradient(to left, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to left, transparent, black 12%, black 88%, transparent);
}
.muted { color: var(--muted-foreground); }
.tp { color: var(--tp); }
.heart { display: inline-flex; }
.heart svg { width: 12px; height: 12px; fill: var(--tp); stroke: var(--tp); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; padding: .7rem 1.6rem; font-size: .9rem; font-weight: 700;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.btn:active { transform: scale(.96); }
.btn-gradient {
  background: linear-gradient(to left, var(--tp), var(--tp2));
  color: var(--on-tp);
}
.btn-gradient:hover { transform: scale(1.05); }
.btn-lg { padding: .95rem 1.9rem; font-size: 15px; font-weight: 800; }
.btn-block { width: 100%; border-radius: 1rem; padding-block: 1rem; font-weight: 900; font-size: 15px; }
.btn-glass { border: 1px solid var(--border); background: var(--surface-glass); backdrop-filter: blur(14px); color: var(--foreground); }
.btn-glass:hover { transform: scale(1.05); border-color: var(--ring); }
.icon-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted-foreground); transition: transform .3s ease, color .3s ease;
}
.icon-btn:hover { transform: scale(1.1); color: var(--tp); }
.sheen { position: relative; overflow: hidden; }
.sheen::after {
  content: ""; position: absolute; inset: 0; transform: translateX(100%);
  background: rgba(255,255,255,.25); transition: transform .5s ease;
}
.sheen:hover::after { transform: translateX(-100%); }

/* icons */
.icon { display: inline-flex; width: 18px; height: 18px; }
.icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill svg { fill: currentColor; stroke: none; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

/* ---------- Keyframes ---------- */
@keyframes shimmer-x { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes orb-morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%; transform: translate(0,0) scale(1); }
  33% { border-radius: 45% 55% 40% 60% / 60% 40% 50% 50%; transform: translate(4%,-6%) scale(1.08); }
  66% { border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%; transform: translate(-5%,4%) scale(.94); }
}
@keyframes gradient-pan { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 var(--glow); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes word-in { from { opacity: 0; transform: translateY(44px) rotateX(-60deg); } to { opacity: 1; transform: translateY(0) rotateX(0); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes intro-ring { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(60px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slide-in-rtl { from { opacity: 0; transform: translateX(-32px); filter: blur(4px); } to { opacity: 1; transform: translateX(0); filter: blur(0); } }

/* ---------- Intro loader ---------- */
#intro {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: var(--background); transition: opacity .7s ease, transform .7s ease, filter .7s ease;
}
#intro.done { opacity: 0; transform: scale(1.06); filter: blur(8px); pointer-events: none; }
.intro-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.intro-ring {
  position: absolute; inset: -2.5rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--tp) 30%, transparent);
  animation: intro-ring 1.6s ease-out infinite;
}
.intro-logo {
  position: relative; z-index: 1; width: 5rem; height: 5rem; border-radius: 1.5rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 900; color: var(--on-tp);
  background: linear-gradient(135deg, var(--tp), var(--tp2)); box-shadow: 0 10px 50px -6px var(--glow);
  animation: pop-in .7s cubic-bezier(.22,1,.36,1) both;
}
.intro-texts { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.intro-brand { font-size: 1.25rem; font-weight: 900; letter-spacing: .35em; animation: fade-in .6s .25s ease both; }
.intro-line {
  width: 11rem; height: 3px; border-radius: 99px; transform-origin: center;
  background: linear-gradient(to left, var(--tp), var(--tp2));
  animation: pop-in 1.2s .35s ease both;
}
.intro-sub { font-size: .75rem; letter-spacing: .1em; color: var(--muted-foreground); animation: fade-in .6s .6s ease both; }

/* ---------- Cursor ---------- */
#cursor-ring, #cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; border-radius: 999px; transform: translate(-50%,-50%); z-index: 200; opacity: 0; }
#cursor-ring { width: 34px; height: 34px; border: 2px solid var(--tp); mix-blend-mode: difference; transition: width .25s ease, height .25s ease, opacity .25s ease; }
#cursor-dot { width: 7px; height: 7px; background: var(--tp2); transition: width .2s ease, height .2s ease; }
.cursor-on #cursor-ring { opacity: .55; }
.cursor-on.cursor-hover #cursor-ring { width: 52px; height: 52px; opacity: .95; }
.cursor-on.cursor-hover #cursor-dot { width: 5px; height: 5px; }
.cursor-on.cursor-press #cursor-ring { transform: translate(-50%,-50%) scale(.8); }
.cursor-on.cursor-press #cursor-dot { transform: translate(-50%,-50%) scale(1.6); }
@media (pointer: fine) {
  .cursor-on, .cursor-on * { cursor: none !important; }
}

/* ---------- Navbar ---------- */
#navbar { position: fixed; top: 0; right: 0; left: 0; z-index: 50; animation: fade-in .7s .15s ease both; }
.nav-inner {
  max-width: 80rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1rem 1rem; transition: all .5s ease;
}
@media (min-width: 640px) { .nav-inner { padding-inline: 1.5rem; } }
#navbar.scrolled .nav-inner {
  margin-block: .5rem; border-radius: 1rem; padding-block: .625rem;
  background: var(--surface-glass); backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px -12px var(--glow);
}
@media (min-width: 1024px) { #navbar.scrolled .nav-inner { margin-inline: auto; } }

.brand { display: flex; align-items: center; gap: .625rem; }
.brand-mark {
  position: relative; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
  border-radius: .75rem; overflow: hidden; background: linear-gradient(135deg, var(--tp), var(--tp2));
  color: var(--on-tp); font-size: 1.1rem; font-weight: 900;
  transition: transform .5s ease;
}
.brand:hover .brand-mark { transform: rotate(360deg); }
.brand-text { display: none; flex-direction: column; align-items: flex-start; line-height: 1; }
@media (min-width: 640px) { .brand-text { display: flex; } }
.brand-name { font-size: 15px; font-weight: 900; letter-spacing: .1em; }
.brand-sub { margin-top: .25rem; font-size: 9px; font-weight: 500; letter-spacing: .3em; color: var(--muted-foreground); }

#nav-desktop { display: none; align-items: center; gap: .25rem; position: relative; }
@media (min-width: 768px) { #nav-desktop { display: flex; } }
#nav-pill {
  position: absolute; top: 0; height: 100%; border-radius: 999px;
  background: linear-gradient(to left, var(--tp), var(--tp2));
  transition: left .35s cubic-bezier(.22,1,.36,1), width .35s cubic-bezier(.22,1,.36,1), opacity .3s;
  opacity: 0; z-index: 0;
}
.nav-link {
  position: relative; z-index: 1; border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 500;
  color: var(--muted-foreground); transition: color .3s ease;
}
.nav-link:hover { color: var(--foreground); }
.nav-link.active { color: var(--on-tp); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }
.theme-wrap { position: relative; }
.theme-dot {
  position: absolute; top: -2px; left: -2px; width: 10px; height: 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--tp), var(--tp2));
}
#theme-menu {
  position: absolute; top: 3rem; left: 0; z-index: 50; width: 14rem; border-radius: 1rem; padding: .5rem;
  box-shadow: 0 16px 50px -12px var(--glow);
  animation: pop-in .25s cubic-bezier(.22,1,.36,1) both;
}
.theme-menu-title { padding: .375rem .75rem .5rem; font-size: 11px; font-weight: 700; color: var(--muted-foreground); }
.theme-item {
  display: flex; width: 100%; align-items: center; gap: .75rem; border-radius: .75rem; padding: .625rem .75rem;
  font-size: .875rem; color: color-mix(in srgb, var(--foreground) 85%, transparent); transition: background .2s;
}
.theme-item:hover { background: color-mix(in srgb, var(--accent) 60%, transparent); }
.theme-item.current { background: var(--accent); color: var(--accent-foreground); font-weight: 700; }
.theme-swatch { display: flex; width: 1.5rem; height: 1.5rem; overflow: hidden; border-radius: 999px; border: 1px solid var(--border); }
.theme-swatch i { width: 50%; height: 100%; }
#burger { display: inline-flex; }
@media (min-width: 768px) { #burger { display: none; } }

.scroll-progress {
  max-width: 80rem; margin-inline: auto; height: 2px; border-radius: 999px; transform-origin: right;
  transform: scaleX(0);
  background: linear-gradient(to left, var(--tp), var(--tp2), transparent);
}

/* mobile menu */
#mobile-menu {
  position: fixed; top: 72px; right: .75rem; left: .75rem; z-index: 40; border-radius: 1rem; padding: .75rem;
  box-shadow: 0 20px 60px -12px var(--glow);
  animation: pop-in .3s ease both;
}
#mobile-menu[hidden] { display: none; }
.m-link {
  display: flex; align-items: center; justify-content: space-between; border-radius: .75rem;
  padding: .75rem 1rem; font-size: 15px; font-weight: 500; color: var(--muted-foreground);
}
.m-link:hover, .m-link.active { background: var(--accent); color: var(--accent-foreground); }
#mobile-menu .btn { width: 100%; margin-top: .5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; padding: 7rem 1rem 4rem;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to left, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}
.orb { position: absolute; border-radius: 999px; animation: orb-morph 14s ease-in-out infinite; }
.orb-1 { top: 12%; right: 8%; width: 18rem; height: 18rem; background: var(--hero-orb1); filter: blur(90px); }
.orb-2 { bottom: 18%; left: 6%; width: 16rem; height: 16rem; background: var(--hero-orb2); filter: blur(80px); animation-delay: -6s; }
.orb-3 { top: 45%; left: 38%; width: 10rem; height: 10rem; background: var(--hero-orb3); filter: blur(70px); animation-delay: -3s; }
@media (min-width: 768px) { .orb-1 { width: 24rem; height: 24rem; } .orb-2 { width: 20rem; height: 20rem; } }
.orb.small { filter: blur(60px); width: 12rem; height: 12rem; }

.hero-inner { position: relative; z-index: 10; width: 100%; max-width: 64rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .5rem 1rem;
  font-size: .75rem; font-weight: 500; margin-bottom: 1.75rem;
  animation: pop-in .6s .2s cubic-bezier(.22,1,.36,1) both;
}
@media (min-width: 768px) { .hero-badge { font-size: .875rem; } }
.pulse-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--tp2); animation: pulse-ring 2.2s cubic-bezier(.4,0,.6,1) infinite; }

.hero-title { font-size: 2.25rem; line-height: 1.35; perspective: 800px; }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }
.hero-line1 { display: block; }
.hero-line1 .w { display: inline-block; animation: word-in .7s cubic-bezier(.22,1,.36,1) both; }
.hero-line2-wrap { display: block; margin-top: .5rem; min-height: 1.4em; padding-bottom: .5rem; }
.hero-line2 {
  display: inline-block; padding-bottom: .5rem;
  background: linear-gradient(to left, var(--tp), var(--tp2), var(--tp));
  background-size: 220% 220%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: word-in .7s .8s cubic-bezier(.22,1,.36,1) both, gradient-pan 7s ease infinite;
}

.hero-subtitle {
  margin-top: 1.75rem; max-width: 42rem; font-size: .875rem; line-height: 2; color: var(--muted-foreground);
  animation: fade-in .7s 1.05s ease both; text-wrap: balance;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1rem; line-height: 2.25; } }

.hero-ctas {
  margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem;
  animation: fade-in .7s 1.2s ease both;
}
.magnetic { display: inline-block; }

.hero-stats {
  margin-top: 4rem; width: 100%; max-width: 48rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.stat { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; }
.stat-value { display: flex; align-items: baseline; gap: .125rem; }
.stat-num { font-size: 1.875rem; font-weight: 900; }
@media (min-width: 768px) { .stat-num { font-size: 2.25rem; } }
.stat-suffix { font-size: 1.25rem; font-weight: 900; color: var(--tp); }
.stat-label { font-size: .75rem; color: var(--muted-foreground); }

.scroll-indicator { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 10; animation: fade-in 1s 1.8s ease both; }
.mouse { display: flex; width: 1.75rem; height: 3rem; justify-content: center; align-items: flex-start; border: 2px solid color-mix(in srgb, var(--muted-foreground) 40%, transparent); border-radius: 999px; padding: .375rem; }
.mouse-dot { width: 4px; height: 8px; border-radius: 999px; background: var(--tp); animation: scroll-dot 1.8s ease-in-out infinite; }
.scroll-indicator .icon { width: 14px; height: 14px; margin: .25rem auto 0; }

/* ---------- Marquee ---------- */
.marquee-band {
  position: relative; transform: rotate(-1deg);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding-block: 1rem;
  background: linear-gradient(to left, color-mix(in srgb, var(--tp) 8%, transparent), transparent, color-mix(in srgb, var(--tp2) 8%, transparent));
  backdrop-filter: blur(4px);
}
.marquee-track { display: flex; width: max-content; align-items: center; direction: ltr; gap: 2rem; animation: marquee-rtl 28s linear infinite; }
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.mq-item { display: flex; align-items: center; gap: 2rem; white-space: nowrap; }
.mq-item span:first-child { font-size: .875rem; font-weight: 700; color: color-mix(in srgb, var(--foreground) 70%, transparent); }
@media (min-width: 768px) { .mq-item span:first-child { font-size: 1rem; } }
.mq-item span:last-child { color: var(--tp2); }

/* ---------- Section head ---------- */
.section-head { max-width: 42rem; margin-inline: auto; text-align: center; }
.badge { display: inline-block; border-radius: 999px; padding: .375rem 1rem; font-size: .75rem; font-weight: 700; color: var(--tp); }
.section-head h2 { margin-top: 1rem; font-size: 1.875rem; }
@media (min-width: 768px) { .section-head h2 { font-size: 2.25rem; } }
.section-head p { margin-top: 1rem; font-size: .875rem; line-height: 2; color: var(--muted-foreground); }
@media (min-width: 768px) { .section-head p { font-size: 1rem; } }
.head-line { display: block; width: 6rem; height: 4px; border-radius: 999px; margin: 1.5rem auto 0; background: linear-gradient(to left, var(--tp), var(--tp2)); transform: scaleX(0); transition: transform .7s .3s cubic-bezier(.22,1,.36,1); }
.head-line.in-view, .in-view .head-line { transform: scaleX(1); }

/* ---------- Services ---------- */
.services-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  position: relative; height: 100%; overflow: hidden; border-radius: 1.5rem;
  border: 1px solid var(--border); background: var(--card); padding: 1.75rem;
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease, border-color .45s ease;
  transform-style: preserve-3d; will-change: transform;
}
@media (min-width: 768px) { .service-card { padding: 2rem; } }
.service-card:hover { box-shadow: 0 20px 60px -12px var(--glow), 0 0 0 1px var(--ring); border-color: var(--ring); }
.service-topline { position: absolute; inset-inline: 0; top: 0; height: 4px; transform-origin: right; transform: scaleX(0); background: linear-gradient(to left, var(--tp), var(--tp2)); transition: transform .5s ease; }
.service-card:hover .service-topline { transform: scaleX(1); }
.service-blob { position: absolute; top: -4rem; left: -4rem; width: 10rem; height: 10rem; border-radius: 999px; background: var(--hero-orb1); filter: blur(48px); opacity: 0; transition: opacity .7s ease; }
.service-card:hover .service-blob { opacity: 1; }
.service-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; }
.service-icon {
  width: 3.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: center; border-radius: 1rem;
  color: var(--tp); background: linear-gradient(135deg, color-mix(in srgb, var(--tp) 20%, transparent), color-mix(in srgb, var(--tp2) 20%, transparent));
  transition: all .5s ease;
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-icon {
  color: var(--on-tp); background: linear-gradient(135deg, var(--tp), var(--tp2));
  box-shadow: 0 10px 30px -6px var(--glow);
}
.service-num { font-size: 3rem; font-weight: 900; line-height: 1; color: color-mix(in srgb, var(--foreground) 5%, transparent); transition: color .5s ease; }
.service-card:hover .service-num { color: color-mix(in srgb, var(--tp) 15%, transparent); }
.service-card h3 { position: relative; z-index: 1; margin-top: 1.5rem; font-size: 1.25rem; }
@media (min-width: 768px) { .service-card h3 { font-size: 1.5rem; } }
.service-card > p { position: relative; z-index: 1; margin-top: .75rem; font-size: .875rem; line-height: 2; color: var(--muted-foreground); }
.service-features { position: relative; z-index: 1; margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.service-features li {
  border-radius: 999px; border: 1px solid var(--border); background: var(--muted);
  padding: .375rem .75rem; font-size: 11px; font-weight: 500; color: var(--muted-foreground);
  transition: border-color .3s ease;
}
.service-card:hover .service-features li { border-color: var(--ring); }
.service-cta { position: relative; z-index: 1; margin-top: 1.5rem; display: flex; align-items: center; gap: .375rem; font-size: .875rem; font-weight: 700; color: var(--tp); opacity: 0; transition: all .5s ease; }
.service-card:hover .service-cta { opacity: 1; }

/* ---------- Works ---------- */
.works-section { position: relative; }
.top-hairline { position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(to left, transparent, color-mix(in srgb, var(--tp) 40%, transparent), transparent); }
.filters { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; position: relative; }
.filter-btn { position: relative; border-radius: 999px; padding: .625rem 1.25rem; font-size: .875rem; font-weight: 700; color: var(--muted-foreground); transition: color .3s; }
.filter-btn:hover { color: var(--foreground); }
.filter-btn .fpill { position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(to left, var(--tp), var(--tp2)); box-shadow: 0 6px 24px -6px var(--glow); }
.filter-btn.active { color: var(--on-tp); }
.filter-btn span.txt { position: relative; z-index: 1; }
.works-grid { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card {
  position: relative; display: block; width: 100%; overflow: hidden; border-radius: 1.5rem; text-align: right;
  border: 1px solid var(--border); background: var(--card);
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease, border-color .45s ease, opacity .4s, scale .4s;
  transform-style: preserve-3d; will-change: transform;
  opacity: 0; transform: translateY(40px) scale(.96);
}
.work-card.shown { opacity: 1; transform: translateY(0) scale(1); }
.work-card:hover { box-shadow: 0 20px 60px -12px var(--glow), 0 0 0 1px var(--ring); border-color: var(--ring); }
.work-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.work-card:hover .work-media img { transform: scale(1.1); }
.work-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.2), transparent); opacity: .8; transition: opacity .5s; }
.work-card:hover .work-shade { opacity: .95; }
.work-chip { position: absolute; top: .875rem; right: .875rem; border-radius: 999px; padding: .25rem .75rem; font-size: 11px; font-weight: 700; color: #fff; background: var(--surface-glass); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.14); }
.work-featured { position: absolute; top: .875rem; left: .875rem; border-radius: 999px; padding: .25rem .75rem; font-size: 11px; font-weight: 700; color: var(--on-tp); background: linear-gradient(to left, var(--tp), var(--tp2)); box-shadow: 0 4px 16px -4px var(--glow); }
.work-hover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; opacity: 0; transition: all .5s ease; }
.work-card:hover .work-hover { opacity: 1; }
.work-eye {
  width: 3.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: center; border-radius: 999px;
  color: var(--on-tp); background: linear-gradient(to left, var(--tp), var(--tp2));
  transform: scale(.5); transition: transform .5s ease;
}
.work-card:hover .work-eye { transform: scale(1); }
.work-hover span.txt { transform: translateY(12px); font-size: .875rem; font-weight: 700; color: #fff; transition: transform .5s ease; }
.work-card:hover .work-hover span.txt { transform: translateY(0); }
.work-meta { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; }
.work-meta h3 { font-size: 1.125rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .work-meta h3 { font-size: 1.25rem; } }
.work-meta .sub { margin-top: .25rem; display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: rgba(255,255,255,.7); }
.work-meta .sub .icon { width: 14px; height: 14px; }
.empty-state { margin-top: 4rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; color: var(--muted-foreground); font-size: .875rem; }
.empty-state .icon { width: 40px; height: 40px; opacity: .4; }
.empty-state.text-only { margin-top: 4rem; text-align: center; }
[hidden] { display: none !important; }

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px); padding: .75rem;
  animation: fade-in .3s ease both;
}
@media (min-width: 640px) { .modal-backdrop { padding: 1.5rem; } }
.modal-backdrop.bottom { align-items: flex-end; padding: 0; }
@media (min-width: 640px) { .modal-backdrop.bottom { align-items: center; padding: 1.5rem; } }
.modal-panel {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 48rem; max-height: 92vh;
  overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--border); background: var(--card);
  box-shadow: 0 30px 90px -20px rgba(0,0,0,.7);
  animation: modal-in .45s cubic-bezier(.22,1,.36,1) both;
}
.modal-backdrop.bottom .modal-panel { max-height: 94vh; border-radius: 1.5rem 1.5rem 0 0; }
@media (min-width: 640px) { .modal-backdrop.bottom .modal-panel { border-radius: 1.5rem; } }
.modal-hero { position: relative; aspect-ratio: 16/9; flex-shrink: 0; overflow: hidden; background: var(--muted); }
.modal-hero.post { aspect-ratio: 16/7; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; animation: fade-in .4s ease both; }
.modal-hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.2), transparent); }
.modal-close {
  position: absolute; top: .875rem; left: .875rem; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; color: #fff; background: var(--surface-glass);
  backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.15);
  transition: transform .3s ease;
}
.modal-close:hover { transform: scale(1.1) rotate(90deg); }
.modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; color: #fff; background: var(--surface-glass);
  backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.15); transition: transform .3s;
}
.modal-nav:hover { transform: translateY(-50%) scale(1.1); }
.modal-nav.next { left: .75rem; }
.modal-nav.prev { right: .75rem; }
.modal-dots { position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%); display: flex; gap: .375rem; }
.modal-dots button { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.5); transition: all .3s; }
.modal-dots button.on { width: 24px; background: var(--tp2); }
.modal-title-wrap { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; }
.modal-cat { display: inline-block; border-radius: 999px; padding: .25rem .75rem; font-size: 11px; font-weight: 700; color: var(--on-tp); background: linear-gradient(to left, var(--tp), var(--tp2)); }
.modal-title-wrap h3 { margin-top: .625rem; font-size: 1.5rem; color: #fff; }
.modal-title-wrap .postmeta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.85); }
.modal-title-wrap .postmeta .icon { width: 14px; height: 14px; }
.modal-body { flex: 1; overflow-y: auto; padding: 1.25rem; }
@media (min-width: 768px) { .modal-body { padding: 1.75rem; } }
.modal-body .desc { font-size: .875rem; line-height: 2; color: var(--muted-foreground); }
@media (min-width: 768px) { .modal-body .desc { font-size: 15px; line-height: 2.25; } }
.meta-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .meta-grid { grid-template-columns: repeat(3, 1fr); } }
.meta-box { border-radius: 1rem; border: 1px solid var(--border); background: var(--muted); padding: .875rem; }
.meta-box .lbl { display: flex; align-items: center; gap: .375rem; font-size: 11px; color: var(--muted-foreground); }
.meta-box .lbl .icon { width: 14px; height: 14px; color: var(--tp); }
.meta-box .val { margin-top: .375rem; font-size: .875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-box.link { border-color: var(--ring); background: linear-gradient(135deg, color-mix(in srgb, var(--tp) 15%, transparent), color-mix(in srgb, var(--tp2) 15%, transparent)); }
.meta-box.link .val { color: var(--tp); }
.tags-wrap { margin-top: 1.5rem; }
.tags-wrap .lbl { margin-bottom: .625rem; display: flex; align-items: center; gap: .375rem; font-size: .75rem; font-weight: 700; color: var(--muted-foreground); }
.tags-wrap .lbl .icon { width: 14px; height: 14px; color: var(--tp); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { border-radius: 999px; border: 1px solid var(--border); background: var(--muted); padding: .375rem .875rem; font-size: .75rem; font-weight: 500; transition: all .3s; }
.tag:hover { border-color: var(--ring); color: var(--tp); }
.post-footer-cta {
  margin-top: 2.5rem; border-radius: 1rem; border: 1px solid var(--ring);
  background: linear-gradient(to left, color-mix(in srgb, var(--tp) 10%, transparent), color-mix(in srgb, var(--tp2) 10%, transparent));
  padding: 1.25rem; text-align: center;
}
.post-footer-cta .t1 { font-size: .875rem; font-weight: 700; }
.post-footer-cta .t2 { margin-top: .375rem; font-size: .75rem; color: var(--muted-foreground); }

/* markdown */
.md-content .md-h1, .md-content .md-h2, .md-content .md-h3, .md-content .md-h4 { font-weight: 800; line-height: 1.5; margin: 1.6em 0 .7em; color: var(--foreground); }
.md-content .md-h2 { font-size: 1.5rem; padding-right: .85rem; border-right: 4px solid var(--tp); }
.md-content .md-h3 { font-size: 1.22rem; }
.md-content .md-h4 { font-size: 1.05rem; }
.md-content .md-p { margin: .9em 0; line-height: 2.1; color: var(--muted-foreground); font-size: .98rem; }
.md-content .md-ul, .md-content .md-ol { margin: 1em 0; padding-right: 1.5rem; display: flex; flex-direction: column; gap: .45em; }
.md-content .md-ul { list-style: disc; }
.md-content .md-ol { list-style: decimal; }
.md-content .md-ul li, .md-content .md-ol li { color: var(--muted-foreground); line-height: 2; }
.md-content .md-quote { margin: 1.4em 0; padding: 1em 1.2em; border-right: 4px solid var(--tp2); background: var(--muted); border-radius: .8rem; color: var(--foreground); }
.md-content .md-quote p { color: inherit; margin: 0; }
.md-content .md-link { color: var(--tp); text-decoration: underline; text-underline-offset: 4px; }
.md-content .md-code { background: var(--accent); border: 1px solid var(--border); padding: .1em .45em; border-radius: .4rem; font-size: .88em; color: var(--tp2); }
.md-content strong { color: var(--foreground); }
.md-content img { border-radius: .75rem; margin-block: 1rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }
.about-text h2 { margin-top: 1rem; font-size: 1.875rem; }
@media (min-width: 768px) { .about-text h2 { font-size: 2.25rem; } }
.about-text p { margin-top: 1rem; font-size: .875rem; line-height: 2; color: var(--muted-foreground); }
.about-text p + p { margin-top: 1rem; }
.chips { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.chip { border-radius: 999px; border: 1px solid var(--ring); background: linear-gradient(to left, color-mix(in srgb, var(--tp) 10%, transparent), color-mix(in srgb, var(--tp2) 10%, transparent)); padding: .5rem 1rem; font-size: .75rem; font-weight: 700; transition: transform .3s; }
.chip:hover { transform: translateY(-3px); }
.about-media { position: relative; }
.about-glow { position: absolute; inset: -1rem; border-radius: 2rem; background: linear-gradient(135deg, color-mix(in srgb, var(--tp) 20%, transparent), color-mix(in srgb, var(--tp2) 20%, transparent)); filter: blur(24px); }
.about-frame { position: relative; overflow: hidden; border-radius: 1.75rem; border: 1px solid var(--border); }
.about-parallax { will-change: transform; }
.about-parallax img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.about-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent, transparent); }
.about-caption { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; display: flex; align-items: center; justify-content: space-between; border-radius: 1rem; padding: .875rem 1.25rem; }
.cap-title { font-size: .875rem; font-weight: 900; color: #fff; }
.cap-sub { margin-top: .125rem; font-size: 11px; color: rgba(255,255,255,.7); }

/* ---------- Process ---------- */
.process-section { position: relative; overflow: hidden; }
.process-grid-bg { position: absolute; inset: 0; opacity: .6;
  background-image: linear-gradient(to left, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
}
.steps-wrap { position: relative; margin-top: 4rem; }
.steps-line { position: absolute; top: 2rem; right: 12%; left: 12%; height: 2px; display: none; transform-origin: right; transform: scaleX(0); transition: transform 1.4s .3s cubic-bezier(.22,1,.36,1); background: linear-gradient(to left, var(--tp), var(--tp2), color-mix(in srgb, var(--tp) 30%, transparent)); }
.steps-wrap.in-view .steps-line { transform: scaleX(1); }
@media (min-width: 1024px) { .steps-line { display: block; } }
.steps-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.step-icon { position: relative; z-index: 1; width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center; border-radius: 1rem; border: 1px solid var(--ring); background: var(--card); box-shadow: 0 10px 30px -8px var(--glow); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.step:hover .step-icon { transform: scale(1.12) rotate(-6deg); }
.step:nth-child(even):hover .step-icon { transform: scale(1.12) rotate(6deg); }
.step-icon .icon { width: 28px; height: 28px; color: var(--tp); }
.step-num { position: absolute; top: -.5rem; right: -.5rem; width: 1.5rem; height: 1.5rem; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 11px; font-weight: 900; color: var(--on-tp); background: linear-gradient(135deg, var(--tp), var(--tp2)); }
.step h3 { margin-top: 1.25rem; font-size: 1rem; }
@media (min-width: 768px) { .step h3 { font-size: 1.125rem; } }
.step p { margin-top: .625rem; max-width: 14rem; font-size: .75rem; line-height: 1.7; color: var(--muted-foreground); }
@media (min-width: 768px) { .step p { font-size: 13px; } }

/* ---------- Testimonials ---------- */
.testimonial-box { position: relative; margin-top: 3rem; }
.t-card { position: relative; overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--border); background: var(--card); padding: 2rem; }
@media (min-width: 768px) { .t-card { padding: 3rem; } }
.t-quote { position: absolute; top: -1rem; right: -1rem; font-size: 7rem; line-height: 1; transform: rotate(180deg); color: color-mix(in srgb, var(--tp) 8%, transparent); font-weight: 900; }
.t-slide { position: relative; z-index: 1; animation: slide-in-rtl .45s cubic-bezier(.22,1,.36,1) both; }
.t-stars { display: flex; gap: .25rem; }
.t-stars .icon { width: 16px; height: 16px; color: var(--tp); }
.t-slide .txt { margin-top: 1.25rem; font-size: 1rem; line-height: 2.25; }
@media (min-width: 768px) { .t-slide .txt { font-size: 1.125rem; } }
.t-person { margin-top: 1.75rem; display: flex; align-items: center; gap: .875rem; }
.t-avatar { width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; border-radius: 1rem; font-size: 1.125rem; font-weight: 900; color: var(--on-tp); background: linear-gradient(135deg, var(--tp), var(--tp2)); }
.t-name { font-size: .875rem; font-weight: 900; }
.t-role { margin-top: .125rem; font-size: .75rem; color: var(--muted-foreground); }
.t-controls { margin-top: 1.5rem; display: flex; align-items: center; justify-content: center; gap: .75rem; }
.t-dots { display: flex; gap: .5rem; }
.t-dots button { width: 8px; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--muted-foreground) 30%, transparent); transition: all .4s; }
.t-dots button:hover { background: color-mix(in srgb, var(--muted-foreground) 60%, transparent); }
.t-dots button.on { width: 2rem; background: linear-gradient(to left, var(--tp), var(--tp2)); }

/* ---------- Blog ---------- */
.blog-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: block; width: 100%; overflow: hidden; border-radius: 1.5rem; text-align: right; border: 1px solid var(--border); background: var(--card); transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s, border-color .45s; }
.post-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px -12px var(--glow), 0 0 0 1px var(--ring); border-color: var(--ring); }
.post-media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.post-card:hover .post-media img { transform: scale(1.1); }
.post-media .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent, transparent); }
.post-badges { position: absolute; bottom: .75rem; right: .75rem; display: flex; align-items: center; gap: .5rem; }
.post-badges span { display: flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .25rem .625rem; font-size: 10px; font-weight: 700; color: #fff; background: var(--surface-glass); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.14); }
.post-badges .icon { width: 12px; height: 12px; }
.post-body { padding: 1.25rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.post-tags span { border-radius: 999px; border: 1px solid var(--border); background: var(--muted); padding: .25rem .625rem; font-size: 10px; font-weight: 700; color: var(--tp); }
.post-body h3 { margin-top: .75rem; font-size: 1rem; line-height: 2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
@media (min-width: 768px) { .post-body h3 { font-size: 1.125rem; } }
.post-card:hover .post-body h3 { color: var(--tp); }
.post-body .excerpt { margin-top: .625rem; font-size: .75rem; line-height: 1.7; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted-foreground); }
.post-foot .read { display: flex; align-items: center; gap: .25rem; font-weight: 700; color: var(--tp); opacity: 0; transition: all .3s; }
.post-card:hover .post-foot .read { opacity: 1; }
.post-foot .read .icon { width: 14px; height: 14px; }

/* ---------- CTA banner ---------- */
.cta-wrap { padding-block: 2.5rem; }
.cta-banner { position: relative; overflow: hidden; border-radius: 2rem; border: 1px solid var(--ring); padding: 2.5rem 1rem; text-align: center; }
@media (min-width: 768px) { .cta-banner { padding: 4rem; } }
.cta-grad { position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--tp) 25%, transparent), transparent, color-mix(in srgb, var(--tp2) 25%, transparent)); background-size: 220% 220%; animation: gradient-pan 7s ease infinite; }
.cta-grid-bg { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(to left, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: 1.875rem; line-height: 1.5; }
@media (min-width: 768px) { .cta-content h2 { font-size: 3rem; line-height: 1.4; } }
.cta-content p { margin: 1rem auto 0; max-width: 36rem; font-size: .875rem; line-height: 2; color: var(--muted-foreground); }
@media (min-width: 768px) { .cta-content p { font-size: 1rem; } }
.cta-content .btn { margin-top: 2rem; font-weight: 900; }

/* ---------- Contact ---------- */
.contact-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(5, 1fr); } }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1024px) { .contact-info { grid-column: span 2; } }
.info-card { display: flex; align-items: center; gap: 1rem; border-radius: 1.5rem; border: 1px solid var(--border); background: var(--card); padding: 1.25rem; transition: box-shadow .45s, border-color .45s; }
.info-card:hover { box-shadow: 0 20px 60px -12px var(--glow), 0 0 0 1px var(--ring); border-color: var(--ring); }
.info-icon { flex-shrink: 0; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; border-radius: 1rem; color: var(--tp); background: linear-gradient(135deg, color-mix(in srgb, var(--tp) 15%, transparent), color-mix(in srgb, var(--tp2) 15%, transparent)); transition: all .5s; }
.info-icon .icon { width: 20px; height: 20px; }
.info-card:hover .info-icon { color: var(--on-tp); background: linear-gradient(135deg, var(--tp), var(--tp2)); }
.info-card .lbl { font-size: .75rem; color: var(--muted-foreground); }
.info-card .val { margin-top: .25rem; font-size: .875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social-card { border-radius: 1.5rem; border: 1px solid var(--border); background: var(--card); padding: 1.25rem; transition: box-shadow .45s, border-color .45s; }
.social-card:hover { box-shadow: 0 20px 60px -12px var(--glow); border-color: var(--ring); }
.social-card .lbl { font-size: .75rem; font-weight: 700; color: var(--muted-foreground); }
.social-row { margin-top: .875rem; display: flex; gap: .75rem; }
.social-row a { width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; border-radius: 1rem; border: 1px solid var(--border); background: var(--muted); color: var(--muted-foreground); transition: all .3s; }
.social-row a:hover { transform: translateY(-4px); border-color: var(--ring); background: linear-gradient(135deg, var(--tp), var(--tp2)); color: var(--on-tp); }
.social-row .icon { width: 20px; height: 20px; }
.contact-form { padding: 1.5rem; }
@media (min-width: 1024px) { .contact-form { grid-column: span 3; padding: 2rem; } }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; }
.field + .field, .form-row + .field { margin-top: 1rem; }
.field label { margin-bottom: .5rem; font-size: .75rem; font-weight: 700; }
.req { color: var(--tp); }
.field input, .field textarea, .field select {
  width: 100%; border-radius: 1rem; border: 1px solid var(--input); background: color-mix(in srgb, var(--muted) 60%, transparent);
  padding: .875rem 1rem; font-size: .875rem; color: var(--foreground); outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted-foreground) 60%, transparent); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--tp); background: var(--card); box-shadow: 0 0 0 4px var(--glow); }
.field textarea { resize: vertical; min-height: 7rem; }
#contact-form .btn { margin-top: .25rem; }
#contact-success { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; min-height: 18rem; }
.success-icon { width: 5rem; height: 5rem; display: flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--on-tp); background: linear-gradient(135deg, var(--tp), var(--tp2)); animation: pop-in .6s cubic-bezier(.22,1,.36,1) both; }
.success-icon .icon { width: 40px; height: 40px; }
#contact-success h3 { font-size: 1.25rem; }
#contact-success p { max-width: 24rem; font-size: .875rem; line-height: 1.9; color: var(--muted-foreground); }
.card { border: 1px solid var(--border); background: var(--card); border-radius: 1.5rem; }

/* ---------- Footer ---------- */
#footer { margin-top: auto; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--card) 40%, transparent); padding-bottom: env(safe-area-inset-bottom); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.brand.static { cursor: default; }
.footer-desc { margin-top: 1rem; max-width: 20rem; font-size: .75rem; line-height: 1.9; color: var(--muted-foreground); }
.footer-title { font-size: .875rem; font-weight: 900; }
.footer-links { margin-top: 1rem; display: flex; flex-direction: column; gap: .625rem; align-items: flex-start; }
.footer-links button { font-size: .75rem; color: var(--muted-foreground); transition: all .3s; }
.footer-links button:hover { transform: translateX(-4px); color: var(--tp); }
.footer-contact { margin-top: 1rem; display: flex; flex-direction: column; gap: .625rem; font-size: .75rem; color: var(--muted-foreground); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); padding-block: 1.5rem; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { font-size: 11px; color: var(--muted-foreground); }
.footer-meta { display: flex; align-items: center; gap: .75rem; font-size: 11px; color: var(--muted-foreground); }
#footer-admin { font-size: 11px; color: color-mix(in srgb, var(--muted-foreground) 60%, transparent); transition: color .3s; }
#footer-admin:hover { color: var(--tp); }

/* ---------- Toasts ---------- */
#toast-root { position: fixed; bottom: 1.25rem; right: 50%; transform: translateX(50%); z-index: 400; display: flex; flex-direction: column; gap: .625rem; width: min(92vw, 26rem); }
.toast {
  display: flex; align-items: center; gap: .625rem; border-radius: 1rem; padding: .875rem 1.1rem;
  font-size: .875rem; font-weight: 600; background: var(--popover); color: var(--foreground);
  border: 1px solid var(--border); box-shadow: 0 16px 50px -12px rgba(0,0,0,.5), 0 0 0 1px var(--ring);
  animation: toast-in .35s cubic-bezier(.22,1,.36,1) both;
}
.toast.out { opacity: 0; transform: translateY(10px) scale(.97); transition: all .3s ease; }
.toast .icon { flex-shrink: 0; width: 20px; height: 20px; }
.toast.success .icon { color: var(--tp); }
.toast.error .icon { color: var(--destructive); }
.toast.info .icon { color: var(--tp2); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
#admin-root .ap-overlay {
  position: fixed; inset: 0; z-index: 100; background: var(--background);
  animation: fade-in .3s ease both; display: flex; flex-direction: column; overflow: hidden;
}
body.ap-open { overflow: hidden; }

/* login */
.ap-login { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem; position: relative; overflow: hidden; }
.ap-login .orb-1 { width: 22rem; height: 22rem; }
.ap-login .orb-2 { width: 18rem; height: 18rem; }
.ap-login-card { position: relative; z-index: 1; width: 100%; max-width: 26rem; border-radius: 1.5rem; padding: 2rem; text-align: center; animation: pop-in .5s cubic-bezier(.22,1,.36,1) both; }
.ap-login-logo { width: 4.5rem; height: 4.5rem; margin-inline: auto; display: flex; align-items: center; justify-content: center; border-radius: 1.25rem; font-size: 1.75rem; font-weight: 900; color: var(--on-tp); background: linear-gradient(135deg, var(--tp), var(--tp2)); box-shadow: 0 10px 50px -6px var(--glow); }
.ap-login-card h2 { margin-top: 1.25rem; font-size: 1.375rem; }
.ap-login-card .sub { margin-top: .5rem; font-size: .8rem; color: var(--muted-foreground); }
.ap-login-card form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; text-align: right; }
.ap-login-card .field input { background: color-mix(in srgb, var(--muted) 60%, transparent); }
.ap-login-error { border-radius: .75rem; border: 1px solid color-mix(in srgb, var(--destructive) 40%, transparent); background: color-mix(in srgb, var(--destructive) 10%, transparent); color: var(--destructive); padding: .625rem .875rem; font-size: .8rem; font-weight: 600; }
.ap-close-x { position: absolute; top: 1rem; left: 1rem; }

/* shell */
.ap-shell { flex: 1; display: flex; min-height: 0; }
.ap-main { flex: 1; min-width: 0; overflow-y: auto; padding: 1rem; }
@media (min-width: 768px) { .ap-main { padding: 2rem; } }
.ap-sidebar { display: none; width: 16rem; flex-shrink: 0; border-left: 1px solid var(--border); background: color-mix(in srgb, var(--card) 60%, transparent); padding: 1.25rem .875rem; flex-direction: column; gap: .25rem; overflow-y: auto; }
@media (min-width: 1024px) { .ap-sidebar { display: flex; } }
.ap-side-title { display: flex; align-items: center; gap: .625rem; padding: .25rem .5rem 1rem; }
.ap-side-title .brand-name { font-size: .9rem; }
.ap-nav-item {
  position: relative; display: flex; align-items: center; gap: .75rem; border-radius: .9rem;
  padding: .7rem .9rem; font-size: .9rem; font-weight: 600; color: var(--muted-foreground);
  transition: all .25s ease; text-align: right; width: 100%;
}
.ap-nav-item:hover { color: var(--foreground); background: color-mix(in srgb, var(--accent) 55%, transparent); }
.ap-nav-item.active { color: var(--on-tp); background: linear-gradient(to left, var(--tp), var(--tp2)); box-shadow: 0 8px 24px -8px var(--glow); }
.ap-nav-item .icon { width: 19px; height: 19px; }
.ap-badge { margin-right: auto; min-width: 1.35rem; height: 1.35rem; border-radius: 999px; padding-inline: .3rem; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; background: var(--destructive); color: #fff; }
.ap-nav-item.active .ap-badge { background: rgba(0,0,0,.35); }
.ap-side-foot { margin-top: auto; padding-top: 1rem; display: flex; flex-direction: column; gap: .25rem; border-top: 1px solid var(--border); }

.ap-topbar { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) { .ap-topbar { display: none; } }
.ap-topbar .no-scrollbar { display: flex; gap: .375rem; overflow-x: auto; flex: 1; }
.ap-topbar .ap-nav-item { width: auto; white-space: nowrap; padding: .5rem .875rem; font-size: .8rem; }
.ap-topbar .ap-close { flex-shrink: 0; }

.ap-section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ap-section-title h2 { font-size: 1.4rem; }
.ap-section-title .sub { margin-top: .25rem; font-size: .8rem; color: var(--muted-foreground); }

/* stats cards */
.ap-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .ap-stats { grid-template-columns: repeat(4, 1fr); } }
.ap-stat { border-radius: 1.25rem; border: 1px solid var(--border); background: var(--card); padding: 1.25rem; position: relative; overflow: hidden; }
.ap-stat .icon-wrap { width: 2.75rem; height: 2.75rem; border-radius: .9rem; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--tp) 18%, transparent), color-mix(in srgb, var(--tp2) 18%, transparent)); color: var(--tp); }
.ap-stat .num { margin-top: .75rem; font-size: 1.6rem; font-weight: 900; }
.ap-stat .lbl { font-size: .78rem; color: var(--muted-foreground); }
.ap-stat::after { content: ""; position: absolute; top: -2rem; left: -2rem; width: 7rem; height: 7rem; border-radius: 999px; background: var(--hero-orb1); filter: blur(40px); opacity: .5; }

/* cards + lists */
.ap-card { border-radius: 1.25rem; border: 1px solid var(--border); background: var(--card); }
.ap-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); }
.ap-card-head h3 { font-size: 1rem; }
.ap-list { display: flex; flex-direction: column; max-height: 24rem; overflow-y: auto; }
.ap-row { display: flex; align-items: center; gap: .875rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); }
.ap-row:last-child { border-bottom: none; }
.ap-row-thumb { width: 3.25rem; height: 2.5rem; border-radius: .6rem; object-fit: cover; flex-shrink: 0; background: var(--muted); }
.ap-row-main { min-width: 0; flex: 1; }
.ap-row-main .t { font-size: .88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-row-main .s { margin-top: .15rem; font-size: .72rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-row-actions { display: flex; gap: .25rem; flex-shrink: 0; }
.ap-row-actions .icon-btn { width: 2.1rem; height: 2.1rem; }
.ap-row-actions .icon-btn .icon { width: 15px; height: 15px; }
.ap-row-actions .danger:hover { color: var(--destructive); }

/* pills */
.pill { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .2rem .6rem; font-size: 11px; font-weight: 700; border: 1px solid var(--border); background: var(--muted); color: var(--muted-foreground); }
.pill.ok { color: var(--tp); border-color: var(--ring); background: color-mix(in srgb, var(--tp) 10%, transparent); }
.pill.off { color: var(--muted-foreground); }
.pill.warn { color: #fb923c; border-color: rgba(251,146,60,.4); background: rgba(251,146,60,.1); }

/* buttons small */
.btn-sm { padding: .45rem 1rem; font-size: .8rem; border-radius: .8rem; }
.btn-danger { background: color-mix(in srgb, var(--destructive) 12%, transparent); border: 1px solid color-mix(in srgb, var(--destructive) 40%, transparent); color: var(--destructive); }
.btn-danger:hover { background: color-mix(in srgb, var(--destructive) 22%, transparent); }
.btn-ghost { border: 1px solid var(--border); color: var(--muted-foreground); }
.btn-ghost:hover { color: var(--foreground); border-color: var(--ring); }

/* messages */
.msg-card { border-radius: 1.1rem; border: 1px solid var(--border); background: var(--card); padding: 1.1rem 1.25rem; margin-bottom: .875rem; transition: border-color .3s; }
.msg-card.unread { border-color: var(--ring); box-shadow: 0 8px 30px -10px var(--glow); }
.msg-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.msg-dot { width: .55rem; height: .55rem; border-radius: 999px; background: var(--tp2); animation: pulse-ring 2s infinite; flex-shrink: 0; }
.msg-name { font-weight: 800; font-size: .9rem; }
.msg-mail { font-size: .75rem; color: var(--tp); direction: ltr; }
.msg-date { margin-right: auto; font-size: .7rem; color: var(--muted-foreground); }
.msg-subject { margin-top: .5rem; font-size: .8rem; font-weight: 700; color: var(--tp2); }
.msg-body { margin-top: .5rem; font-size: .85rem; line-height: 2; color: var(--muted-foreground); white-space: pre-wrap; }
.msg-actions { margin-top: .75rem; display: flex; gap: .5rem; }

/* content editor */
.ap-group { margin-bottom: 1.25rem; }
.ap-group-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.ap-group-head h3 { font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.ap-group-head .icon { color: var(--tp); }
.ap-group-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.ap-group-body .field label { color: var(--muted-foreground); font-weight: 600; }

/* settings */
.ap-settings { display: grid; gap: 1.25rem; max-width: 40rem; }
.ap-danger-zone { border-color: color-mix(in srgb, var(--destructive) 35%, transparent); }
.ap-danger-zone .ap-card-head { border-bottom-color: color-mix(in srgb, var(--destructive) 20%, transparent); }
.ap-danger-zone h3 { color: var(--destructive); }

/* dialog */
.ap-dialog-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 1rem; animation: fade-in .25s ease both; }
.ap-dialog { width: 100%; max-width: 40rem; max-height: 90vh; overflow-y: auto; border-radius: 1.25rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; animation: modal-in .35s cubic-bezier(.22,1,.36,1) both; }
.ap-dialog.small { max-width: 24rem; }
.ap-dialog h3 { font-size: 1.15rem; margin-bottom: 1.25rem; }
.ap-dialog .actions { display: flex; gap: .75rem; justify-content: flex-start; margin-top: 1.5rem; }
.ap-form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ap-form-grid.cols2 { grid-template-columns: repeat(2, 1fr); } }
.ap-form-grid .span2 { grid-column: 1 / -1; }
.check-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--tp); }
.cover-preview { margin-top: .5rem; border-radius: .9rem; border: 1px dashed var(--border); background: var(--muted); min-height: 9rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cover-preview img { max-height: 14rem; width: auto; max-width: 100%; object-fit: cover; }
.cover-preview .placeholder { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--muted-foreground); font-size: .8rem; padding: 2rem; }
.upload-row { display: flex; gap: .5rem; margin-top: .5rem; }
.upload-row .btn { flex-shrink: 0; }
.hint { font-size: .72rem; color: var(--muted-foreground); margin-top: .35rem; line-height: 1.8; }

/* select */
.field select { appearance: none; cursor: pointer; }

/* loading spinner */
.spinner { width: 1.1rem; height: 1.1rem; border-radius: 999px; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: spin .7s linear infinite; display: inline-block; }

/* responsive tweaks */
@media (max-width: 480px) {
  .hero-stats { gap: 1rem; }
  .service-card { padding: 1.5rem; }
  .ap-main { padding: 1rem .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
