/* ============================================================================
   ThumbForge — premium futuristic design system
   Reference: dark atmospheric SaaS aesthetic — deep navy, huge soft glowing
   circular forms, glass surfaces, thin glowing borders, orange + electric
   blue accents, 3D depth, smooth spring-like motion.
   Light mode = the same design language on a bright soft canvas.
   ========================================================================== */

/* --------------------------------- tokens --------------------------------- */
:root {
  --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --bg: #f4f6fb;
  --bg-soft: #eef1f9;
  --surface: #ffffff;
  --surface-2: #f6f8fd;
  --glass: rgba(255, 255, 255, 0.72);
  --text: #0b1526;
  --text-soft: #42506b;
  --muted: #71809c;
  --line: rgba(11, 21, 38, 0.09);
  --line-2: rgba(47, 107, 255, 0.22);

  --accent: #2f6bff;
  --accent-2: #ff7a1a;
  --violet: #7a5cff;
  --cyan: #00b3d6;
  --accent-grad: linear-gradient(95deg, #2f6bff 0%, #7a5cff 60%, #00b3d6 115%);
  --cta-grad: linear-gradient(95deg, #ff8a3d 0%, #ff5470 34%, #8b5cf6 68%, #2f6bff 100%);
  --success: #0aa877;
  --warning: #f59e0b;
  --danger: #e5484d;

  --glow-1: rgba(47, 107, 255, 0.10);
  --glow-2: rgba(122, 92, 255, 0.09);
  --glow-3: rgba(255, 122, 26, 0.05);
  --halo-line: rgba(47, 107, 255, 0.16);
  --halo-glow: rgba(47, 107, 255, 0.10);
  --card-glow: rgba(47, 107, 255, 0.10);
  --card-shadow: 0 10px 34px rgba(15, 30, 70, 0.07), 0 2px 8px rgba(15, 30, 70, 0.05);
  --card-shadow-hover: 0 22px 54px rgba(15, 30, 70, 0.12), 0 4px 14px rgba(47, 107, 255, 0.10);
  --orb-opacity: 0.55;

  --nav-h: 70px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme='dark'] {
  --bg: #04060d;
  --bg-soft: #070b16;
  --surface: rgba(13, 19, 38, 0.78);
  --surface-2: rgba(255, 255, 255, 0.045);
  --glass: rgba(16, 23, 45, 0.62);
  --text: #eaf0ff;
  --text-soft: #b6c2dd;
  --muted: #7d8bad;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(97, 145, 255, 0.30);

  --accent: #4f8bff;
  --accent-2: #ff8a3d;
  --violet: #8b6fff;
  --cyan: #22d3ee;
  --accent-grad: linear-gradient(95deg, #4f8bff 0%, #8b6fff 60%, #22d3ee 115%);
  --success: #2dd4a7;
  --warning: #fbbf24;
  --danger: #ff6369;

  --glow-1: rgba(47, 107, 255, 0.17);
  --glow-2: rgba(122, 92, 255, 0.14);
  --glow-3: rgba(255, 122, 26, 0.09);
  --halo-line: rgba(255, 255, 255, 0.10);
  --halo-glow: rgba(79, 139, 255, 0.16);
  --card-glow: rgba(79, 139, 255, 0.13);
  --card-shadow: 0 16px 44px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --card-shadow-hover: 0 26px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(97, 145, 255, 0.22), 0 10px 44px rgba(47, 107, 255, 0.22);
  --orb-opacity: 0.9;
}

/* --------------------------------- base ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}

/* atmospheric background — layered soft glows that slowly drift */
body::before {
  content: '';
  position: fixed; inset: -10%;
  z-index: -2;
  background:
    radial-gradient(1100px 640px at 88% -12%, var(--glow-1), transparent 62%),
    radial-gradient(900px 560px at -12% 34%, var(--glow-2), transparent 60%),
    radial-gradient(1100px 720px at 52% 128%, var(--glow-3), transparent 62%);
  animation: bgDrift 30s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes bgDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -26px, 0) scale(1.035); }
}

/* cursor-following ambient glow (JS sets --mx/--my) */
.cursor-glow {
  position: fixed; left: 0; top: 0;
  width: 620px; height: 620px;
  margin: -310px 0 0 -310px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, var(--glow-1), var(--glow-2) 42%, transparent 70%);
  transform: translate(var(--mx, 50vw), var(--my, 50vh));
  opacity: 0;
  transition: opacity 0.8s ease;
}
body.cursor-on .cursor-glow { opacity: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; position: relative; }
.section.tight { padding: 48px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin-top: 14px; }
.section-sub { color: var(--text-soft); margin-top: 14px; font-size: 1.02rem; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* scroll reveal — soft, continuous, spring-out (no box jumps) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-spring), transform 0.9s var(--ease-spring);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------ 3D decorative ----------------------------- */
.halo {
  position: absolute;
  left: 50%; top: 50%;
  width: min(74vw, 860px); aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  translate: var(--px, 0px) var(--py, 0px);
  background: radial-gradient(circle at 50% 44%, var(--halo-glow), transparent 62%);
  border: 1.5px solid var(--halo-line);
  box-shadow: 0 0 130px 24px var(--halo-glow), inset 0 0 90px 2px var(--glow-2);
  animation: haloPulse 10s ease-in-out infinite;
  pointer-events: none;
}
@keyframes haloPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50%      { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
}
.orb {
  position: absolute; border-radius: 50%;
  pointer-events: none;
  opacity: var(--orb-opacity);
  translate: var(--px, 0px) var(--py, 0px);
  animation: orbFloat 11s ease-in-out infinite;
}
.orb-a {
  width: 88px; height: 88px; left: 4%; top: 16%;
  background: radial-gradient(circle at 30% 28%, #a7c8ff, #2f6bff 58%, rgba(47, 107, 255, 0.12) 80%, transparent 82%);
  box-shadow: 0 20px 54px rgba(47, 107, 255, 0.38);
}
.orb-b {
  width: 44px; height: 44px; right: 9%; top: 10%;
  background: radial-gradient(circle at 30% 28%, #ffd0a3, #ff7a1a 60%, rgba(255, 122, 26, 0.10) 82%, transparent 84%);
  box-shadow: 0 12px 36px rgba(255, 122, 26, 0.4);
  animation-delay: -3.5s;
}
.orb-c {
  width: 24px; height: 24px; right: 24%; bottom: 12%;
  background: radial-gradient(circle at 30% 28%, #d3c6ff, #7a5cff 62%, rgba(122, 92, 255, 0.10) 84%, transparent 86%);
  box-shadow: 0 10px 28px rgba(122, 92, 255, 0.45);
  animation-delay: -7s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(4deg); }
}
.particle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: 0.35;
  pointer-events: none;
  animation: particleFloat 9s ease-in-out infinite;
}
.particle.p1 { left: 12%; top: 24%; animation-delay: -1s; }
.particle.p2 { left: 20%; bottom: 18%; animation-delay: -3s; width: 3px; height: 3px; background: var(--accent-2); }
.particle.p3 { right: 16%; top: 30%; animation-delay: -5s; background: var(--violet); }
.particle.p4 { right: 30%; bottom: 24%; animation-delay: -2s; width: 5px; height: 5px; }
.particle.p5 { left: 42%; top: 12%; animation-delay: -6s; width: 3px; height: 3px; }
.particle.p6 { right: 8%; bottom: 40%; animation-delay: -4s; background: var(--accent-2); }
@keyframes particleFloat {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.2; }
  50%      { transform: translate3d(8px, -26px, 0); opacity: 0.55; }
}

/* ------------------------------ glass frame ------------------------------- */
.glass-frame { position: relative; isolation: isolate; }
.glass-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 3;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.12) 100%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.75),
    inset 0 -1px 1.5px rgba(255, 255, 255, 0.28),
    inset 1.5px 0 1.5px rgba(255, 255, 255, 0.42),
    inset -1.5px 0 1.5px rgba(255, 255, 255, 0.30);
  opacity: 0.85; transition: opacity 0.3s ease;
}
.glass-frame:hover::after { opacity: 1; }

/* --------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, filter 0.3s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--accent-grad);
  background-size: 150% 100%;
  color: #fff;
  box-shadow: 0 8px 24px var(--card-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); background-position: 85% 0; box-shadow: 0 14px 36px var(--card-glow), inset 0 1px 0 rgba(255, 255, 255, 0.32); }
.btn-ghost { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--card-shadow); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 14px 30px; font-size: 16.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* the reference "Order Now" pill CTA — dark base, orange glow left,
   electric-blue glow right, luminous border, white type + arrow */
.glow-btn {
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background:
    radial-gradient(130% 170% at 6% 50%, rgba(255, 122, 26, 0.60), rgba(255, 122, 26, 0) 44%),
    radial-gradient(130% 170% at 98% 50%, rgba(47, 107, 255, 0.72), rgba(47, 107, 255, 0) 48%),
    linear-gradient(120deg, rgba(8, 11, 22, 0.96), rgba(15, 21, 40, 0.96));
  box-shadow:
    0 10px 34px rgba(47, 107, 255, 0.38),
    0 4px 18px rgba(255, 122, 26, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.glow-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.14);
  box-shadow:
    0 18px 48px rgba(47, 107, 255, 0.52),
    0 8px 28px rgba(255, 122, 26, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.glow-btn:active { transform: translateY(-1px) scale(0.99); }
.glow-btn.btn-sm { padding: 8px 18px; font-size: 13.5px; }
.glow-btn.btn-lg { padding: 16px 36px; font-size: 17px; }
.glow-btn .btn-arrow { display: inline-block; transition: transform 0.35s var(--ease-spring); }
.glow-btn:hover .btn-arrow { transform: translateX(5px); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-soft);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chip b { color: var(--text); }

.spinner {
  width: 16px; height: 16px; flex: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------- nav ---------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: var(--glass);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(2, 8, 24, 0.16);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 100%; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em;
}
.logo span { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-grad);
  box-shadow: 0 6px 18px var(--card-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
/* light mode: dark mark so the white play icon always has contrast */
[data-theme='light'] .logo-mark {
  background: linear-gradient(135deg, #1c2b57 0%, #0d1730 100%);
  box-shadow: 0 6px 18px rgba(15, 30, 70, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a:not(.btn) {
  font-size: 14.5px; font-weight: 500; color: var(--text-soft);
  position: relative; padding: 6px 2px;
  transition: color 0.25s ease;
}
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--accent-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-spring);
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(12deg); border-color: var(--line-2); box-shadow: var(--card-shadow); }
/* body scroll lock while overlay/lightbox is open */
html.locked { overflow: hidden; }

/* theme-aware icons: sun visible in light, moon visible in dark —
   both always contrasting against their surface (no white-on-white) */
.theme-toggle .icon-sun { display: block; color: #b45309; }
.theme-toggle .icon-moon { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-moon { display: block; color: #ffd479; }
[data-theme='light'] .theme-toggle { background: #fff; }
.theme-toggle.spinning .icon-sun, .theme-toggle.spinning .icon-moon { animation: iconSpin 0.65s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes iconSpin {
  0% { transform: scale(0.4) rotate(-90deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.burger { display: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); flex-direction: column; align-items: center; justify-content: center; gap: 4.5px; }
.burger span { width: 17px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease-spring), opacity 0.2s ease; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------------------------- hero ---------------------------------- */
.hero { position: relative; padding: 96px 0 110px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: bgDrift 26s ease-in-out infinite alternate; }
.blob-1 { width: 560px; height: 560px; right: -140px; top: -180px; background: var(--glow-1); }
.blob-2 { width: 480px; height: 480px; left: -160px; bottom: -200px; background: var(--glow-2); animation-delay: -9s; }
.hero .halo { z-index: 0; }
.hero .orb, .hero .particle { z-index: 0; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.hero-copy { animation: heroIn 1s var(--ease-spring) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
/* designer badge above the hero title */
.hero-brand {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  margin-bottom: 4px;
}
.hero-brand-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 6px 16px var(--card-glow);
}
.hero-brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--text); }
.hero-brand-name b { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-brand-role { font-size: 12px; color: var(--muted); font-weight: 600; }
.hero-title {
  font-size: clamp(2.3rem, 5.1vw, 3.9rem);
  font-weight: 800;
  margin: 20px 0 22px;
  letter-spacing: -0.03em;
}
.hero-sub { color: var(--text-soft); font-size: 1.08rem; max-width: 520px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--text-soft); font-size: 14px; }
.stars { color: #ffb02e; letter-spacing: 2px; }

/* 3D floating thumbnail scene — GRID-based composition so the cards
   always occupy their own space and can never cover copy/CTAs */
.hero-visual { position: relative; perspective: 1300px; animation: heroIn 1.1s var(--ease-spring) 0.12s both; }
.hero-feature {
  position: relative;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 12px 6px 44px;
}
.hero-feature-track {
  display: flex;
  /* overflow lives on .hero-feature-viewport, NOT here: this element is the one
     that gets translate3d(), so clipping here slid the clip window away from the
     incoming slide (only slide 1 was ever visible, and "next" showed an empty frame). */
  overflow: visible;
  position: relative;
  border-radius: 22px;
  transition: transform 0.6s var(--ease-spring);
  will-change: transform;
  cursor: grab;
  touch-action: pan-y;
}
.hero-feature-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  /* vertical breathing room for the 3D tilt (so the card isn't cropped); zero on the
     horizontal axis, otherwise the outgoing slide's tilted edge peeks back in */
  padding: 8px 0;
}
.hero-feature-track:active { cursor: grabbing; }
.hero-feature-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  position: relative;
  /* inset the card inside its slot: the .thumb-card 3D tilt projects a few px past the
     slide box, and that overflow was the outgoing slide's edge peeking into the frame */
  padding: 0 7px;
  box-sizing: border-box;
  opacity: 0.9;
  transform: scale(0.97);
  transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring);
}
.hero-feature-slide.active { opacity: 1; transform: scale(1); }
/* mini card strip: one card per featured design (was 9px dots) */
.hero-dots {
  display: flex; align-items: stretch; justify-content: center; gap: 9px;
  margin-top: 14px;
}
.hero-dot {
  flex: 1 1 0; min-width: 0;
  position: relative; display: block; padding: 0; border: 0;
  aspect-ratio: 16 / 9;
  border-radius: 11px; overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  opacity: 0.5;
  filter: saturate(0.65);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring),
              box-shadow 0.3s ease, filter 0.3s ease;
}
.hero-dot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-dot .hero-dot-label {
  position: absolute; left: 4px; top: 4px;
  padding: 2px 6px;
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; text-align: left;
  background: rgba(4, 10, 24, 0.72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  max-width: calc(100% - 8px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-dot.active .hero-dot-label { background: rgba(47, 107, 255, 0.85); border-color: rgba(255,255,255,0.3); }
.hero-dot:hover { opacity: 0.85; transform: translateY(-2px); filter: saturate(0.9); }
.hero-dot:focus-visible { outline: 2px solid var(--accent, #2f6bff); outline-offset: 2px; }
.hero-dot.active {
  opacity: 1; filter: none; transform: none;
  box-shadow: 0 0 0 2px var(--accent, #2f6bff), 0 0 0 5px rgba(47, 107, 255, 0.18), 0 10px 22px rgba(2, 8, 24, 0.35);
}
.hero-arrow {
  position: absolute; top: 46%; transform: translateY(-50%); z-index: 6;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 22px; line-height: 1;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), background 0.3s ease, border-color 0.3s ease;
}
.hero-arrow:hover { transform: translateY(-50%) scale(1.08); background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.hero-arrow.hero-arrow-prev { left: -8px; }
.hero-arrow.hero-arrow-next { right: -8px; }
@keyframes floatA { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -14px, 0); } }
@keyframes floatB { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, 12px, 0); } }
.thumb-card {
  border-radius: 18px; overflow: hidden;
  background: var(--surface);
  transform: perspective(900px) rotateX(var(--rx, 4deg)) rotateY(var(--ry, -7deg));
  box-shadow: 0 34px 74px rgba(2, 8, 24, 0.5), 0 10px 26px rgba(47, 107, 255, 0.20);
  transition: transform 0.4s var(--ease-spring);
  will-change: transform;
}
.slot-sec .thumb-card {
  transform: perspective(900px) rotateX(var(--rx, -4deg)) rotateY(var(--ry, 8deg));
  box-shadow: 0 40px 84px rgba(2, 8, 24, 0.55), 0 12px 30px rgba(122, 92, 255, 0.24);
}
[data-theme='light'] .thumb-card { box-shadow: 0 30px 64px rgba(15, 30, 70, 0.22), 0 10px 26px rgba(47, 107, 255, 0.14); }
[data-theme='light'] .slot-sec .thumb-card { box-shadow: 0 34px 70px rgba(15, 30, 70, 0.26), 0 12px 30px rgba(122, 92, 255, 0.18); }
.float-badge {
  position: absolute; z-index: 3;
  padding: 9px 15px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12.5px; color: var(--text-soft);
  box-shadow: var(--card-shadow);
  white-space: nowrap;
  pointer-events: none;
}
.float-badge b { color: var(--text); }
.fb-1 { left: -10px; bottom: -14px; animation: floatA 7s ease-in-out infinite; }
.fb-2 { right: -8px; top: -14px; animation: floatB 7.5s ease-in-out infinite; }

/* --------------------------------- stats ---------------------------------- */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow);
}
.stat { text-align: center; padding: 6px 10px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ------------------------------ category cards ---------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-body { padding: 12px 14px 13px; }
.cat-name { font-size: 1rem; margin-bottom: 2px; }
.cat-blurb { font-size: 12px; line-height: 1.45; margin-bottom: 5px; }
.cat-cta { font-size: 12.5px; }
.cat-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: var(--card-shadow-hover);
}
.cat-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.cat-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-spring), filter 0.4s ease;
}
.cat-card:hover .cat-media img { transform: scale(1.06); }
.cat-icon {
  position: absolute; top: 11px; left: 11px; z-index: 2;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cat-icon svg { width: 19px; height: 19px; color: var(--text); }
[data-theme='dark'] .cat-icon { background: rgba(10, 16, 34, 0.82); }
.cat-count {
  position: absolute; top: 11px; right: 11px; z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11.5px; font-weight: 700; color: var(--text-soft);
}
.cat-cta .chev { transition: transform 0.35s var(--ease-spring); }
.cat-card:hover .cat-cta .chev { transform: translateX(4px); }

/* compact (portfolio page) — small, dense, many per viewport */
.cat-grid.compact { grid-template-columns: repeat(6, 1fr); gap: 11px; }
.cat-grid.compact .cat-media img { aspect-ratio: 16 / 9; }
.cat-grid.compact .cat-body { padding: 9px 11px 11px; }
.cat-grid.compact .cat-name { font-size: 0.86rem; margin-bottom: 0; }
.cat-grid.compact .cat-blurb { display: none; }
.cat-grid.compact .cat-icon { width: 30px; height: 30px; top: 8px; left: 8px; border-radius: 9px; }
.cat-grid.compact .cat-icon svg { width: 15px; height: 15px; }
.cat-grid.compact .cat-count { top: 8px; right: 8px; font-size: 10px; padding: 2px 8px; }
.cat-grid.compact .cat-cta { font-size: 12px; margin-top: 4px; }

/* ------------------------------- services --------------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--card-shadow-hover); }
.service-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 24px var(--card-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.service-card p { font-size: 13.8px; color: var(--text-soft); }

/* --------------------------------- steps ---------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease-spring), border-color 0.4s ease, box-shadow 0.4s ease;
}
.step:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--card-shadow-hover); }
.step-num {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--accent);
  margin-bottom: 16px;
}
.step h3 { font-size: 1rem; margin-bottom: 7px; }
.step p { font-size: 13.5px; color: var(--text-soft); }

/* --------------------------------- pricing -------------------------------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pkg-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 22px;
  box-shadow: var(--card-shadow);
  transition: transform 0.45s var(--ease-spring), border-color 0.4s ease, box-shadow 0.4s ease;
  /* note: overflow is intentionally NOT hidden so the "Most Popular" ribbon
     (which sits inside this card) and hover effects are never clipped. */
}
.pkg-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--card-shadow-hover); }
.pkg-card.popular {
  transform: translateY(-8px) scale(1.02);
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--accent-grad) border-box;
  box-shadow: 0 22px 60px var(--card-glow), 0 0 30px rgba(47, 107, 255, 0.14);
}
.pkg-card.popular:hover { transform: translateY(-12px) scale(1.03); box-shadow: 0 30px 72px var(--card-glow), 0 0 0 1px var(--line-2); }
/* "Most Popular" ribbon sits INSIDE the top of the card so it always shows */
.pkg-pop {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 9px 16px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--accent-grad);
  color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em;
  text-align: center;
  box-shadow: 0 8px 22px var(--card-glow);
  white-space: nowrap;
  z-index: 3;
}
.pkg-card.popular { padding-top: 52px; }
.pkg-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 4px;
}
.pkg-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 26px;
  border-radius: 15px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--card-shadow);
  flex: none;
}
.pkg-card.popular .pkg-icon { border-color: rgba(122, 92, 255, 0.5); }
.pkg-name { font-family: var(--font-head); font-size: 1.28rem; font-weight: 800; letter-spacing: 0.01em; color: var(--text); }
.pkg-price { font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; margin: 12px 0 2px; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pkg-price small { font-size: 0.85rem; font-weight: 600; color: var(--muted); -webkit-text-fill-color: initial; }
.pkg-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.pkg-feats { list-style: none; display: grid; gap: 12px; margin-bottom: 24px; flex: 1; }
.pkg-feats li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.pkg-feats li .feat-ico {
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(47, 107, 255, 0.12);
  font-size: 14px;
}
.pkg-feats li .ft { display: grid; gap: 1px; }
.pkg-feats li .ft b { color: var(--text); font-weight: 700; font-size: 14px; }
.pkg-feats li .ft span { color: var(--muted); font-size: 12px; }
.pkg-guarantee {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--text-soft);
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 8px 14px;
  margin-top: 14px;
  width: fit-content;
}
/* subtle top accent glow on every card, stronger on the popular one */
.pkg-card::after {
  content: '';
  position: absolute; top: 0; left: 22px; right: 22px; height: 2px; border-radius: 0 0 4px 4px;
  background: var(--accent-grad);
  opacity: 0.35;
  transition: opacity 0.4s ease;
}
.pkg-card:hover::after { opacity: 1; }
.pkg-card.popular::after { opacity: 1; }
.pkg-card.popular .pkg-btn { width: 100%; }
/* "always included" strip under the grid */
.pkg-note {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px;
  margin-top: 26px;
  font-size: 13px; color: var(--muted);
}
.pkg-note span { display: inline-flex; align-items: center; gap: 6px; }
/* responsive pricing — 3 -> 1 columns */
@media (max-width: 900px) { .pkg-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.check {
  flex: none;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--success);
  color: #fff; font-size: 11px; font-weight: 800;
  margin-top: 2px;
}
.currency-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }

/* currency switcher */
.cur-switch {
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 13.5px; font-weight: 600;
  min-width: 180px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.cur-switch option { background: var(--surface); color: var(--text); }
.cur-switch:hover, .cur-switch:focus { border-color: var(--accent); box-shadow: var(--card-shadow); outline: none; }
/* explicit theme-aware contrast — visible closed AND in the open dropdown */
[data-theme='dark'] .cur-switch { color: #eaf0ff; background: rgba(255, 255, 255, 0.07); }
[data-theme='dark'] .cur-switch option { background: #0f1526; color: #eaf0ff; }
[data-theme='light'] .cur-switch { color: #0b1526; background: #ffffff; }
[data-theme='light'] .cur-switch option { background: #ffffff; color: #0b1526; }

/* ------------------------------ testimonials ------------------------------ */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--card-shadow);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.4s var(--ease-spring), border-color 0.4s ease, box-shadow 0.4s ease;
}
.quote-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--card-shadow-hover); }
.quote-text { color: var(--text-soft); font-size: 14.5px; flex: 1; }
.quote-person { display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-grad);
  color: #fff; font-family: var(--font-head); font-weight: 800;
  box-shadow: 0 8px 20px var(--card-glow);
}
.quote-name { font-weight: 700; font-size: 14.5px; }
.quote-role { color: var(--muted); font-size: 12.5px; }

/* --------------------------------- CTA band ------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 26px;
  padding: 64px 30px;
  background:
    radial-gradient(600px 300px at 50% 0%, var(--glow-1), transparent 70%),
    linear-gradient(160deg, rgba(47, 107, 255, 0.16), rgba(122, 92, 255, 0.12) 50%, rgba(255, 122, 26, 0.10));
  border: 1px solid var(--line-2);
  box-shadow: var(--card-shadow);
}
.cta-band::before {
  content: '';
  position: absolute; left: 50%; top: -70%;
  width: min(70%, 640px); aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid var(--halo-line);
  box-shadow: 0 0 90px 12px var(--halo-glow) inset;
  pointer-events: none;
}
.cta-band h2 { position: relative; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { position: relative; color: var(--text-soft); max-width: 520px; margin: 0 auto 30px; }
.cta-actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------- footer --------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-soft); font-size: 14px; margin: 16px 0 20px; max-width: 340px; }
.footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: var(--text-soft); font-size: 14px; transition: color 0.25s ease, padding-left 0.3s var(--ease-spring); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li { color: var(--text-soft); font-size: 14px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}

/* socials */
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
  transition: transform 0.35s var(--ease-spring), color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.social-btn svg { width: 19px; height: 19px; }
.social-btn:hover { transform: translateY(-4px); color: #fff; background: var(--accent-grad); border-color: transparent; box-shadow: 0 12px 28px var(--card-glow); }

/* -------------------------------- page hero ------------------------------- */
.page-hero { position: relative; padding: 74px 0 64px; text-align: center; overflow: hidden; }
.page-hero::after {
  content: '';
  position: absolute; left: 50%; top: 42%;
  width: min(72vw, 780px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--halo-line);
  box-shadow: 0 0 100px 10px var(--halo-glow) inset;
  pointer-events: none;
  animation: haloPulse 12s ease-in-out infinite;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; margin-top: 16px; }
.page-hero .section-sub { max-width: 620px; margin: 16px auto 0; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--accent); }

/* ------------------------- portfolio overlay & gallery -------------------- */
.cat-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: stretch; justify-content: flex-end;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.cat-overlay.open { opacity: 1; pointer-events: auto; }
.cat-panel {
  position: relative;
  width: min(1080px, 100%);
  height: 100%;
  overflow-y: auto;
  background: var(--bg-soft);
  border-left: 1px solid var(--line-2);
  box-shadow: -40px 0 90px rgba(0, 0, 0, 0.45);
  transform: translateX(6%);
  opacity: 0;
  transition: transform 0.6s var(--ease-spring), opacity 0.5s ease;
}
.cat-overlay.open .cat-panel { transform: none; opacity: 1; }
.cat-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 22px 34px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.cat-head .cat-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cat-head .cat-icon { position: static; width: 48px; height: 48px; border-radius: 14px; flex: none; }
.cat-head .cat-icon svg { width: 22px; height: 22px; }
.cat-head .cat-id-text { min-width: 0; }
.cat-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent);
}
.cat-eyebrow::before { content: ''; width: 14px; height: 2px; border-radius: 2px; background: var(--accent-grad); }
.cat-head h2 { font-family: var(--font-head); font-size: 1.55rem; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.cat-head p { color: var(--muted); font-size: 13px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-count-chip {
  margin-left: auto; margin-right: 12px;
  flex: none;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 700; color: var(--text-soft);
}
.cat-close {
  margin-left: 12px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease;
}
.cat-close:hover { transform: rotate(90deg); border-color: var(--line-2); }

.gallery { position: relative; padding: 44px 0 30px; }
.gallery-track {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 34px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.gallery-track::-webkit-scrollbar { height: 8px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.gallery-item {
  flex: 0 0 clamp(300px, 72%, 760px);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  cursor: zoom-in;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s ease, border-color 0.35s ease;
  background: var(--surface);
}
.gallery-item:hover { transform: translateY(-6px) scale(1.012); border-color: var(--line-2); box-shadow: var(--card-shadow-hover); }
.gallery-item img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.7s var(--ease-spring); }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: 44px 18px 16px;
  background: linear-gradient(transparent, rgba(2, 6, 16, 0.9));
  color: #fff;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-spring);
}
.gallery-item:hover figcaption { opacity: 1; transform: none; }
.gallery-item .g-title {
  font-family: var(--font-head);
  font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: 0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}
.gallery-item .g-view {
  display: inline-flex; align-items: center; gap: 6px;
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 700; color: #fff;
  transition: background 0.3s ease, transform 0.3s var(--ease-spring);
}
.gallery-item .g-view svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gallery-item:hover .g-view { background: rgba(255, 255, 255, 0.24); transform: translateX(2px); }
/* like badge — top-right, clean glass pill, never overlaps the title */
.gallery-item .g-like {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 16, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: 12.5px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease-spring), background 0.3s ease, color 0.3s ease;
}
.gallery-item .g-like .g-heart {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round;
  color: #ff9fb0;
}
.gallery-item .g-like.liked { color: #ff5b77; }
.gallery-item .g-like.liked .g-heart { fill: #ff5b77; stroke: #ff5b77; }
.gallery-item:hover .g-like { transform: scale(1.05); background: rgba(2, 6, 16, 0.62); }
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease;
}
.g-nav:hover { transform: translateY(-50%) scale(1.08); box-shadow: 0 12px 30px var(--card-glow); }
.g-prev { left: 14px; }
.g-next { right: 14px; }
.g-dots { display: flex; gap: 7px; justify-content: center; padding-bottom: 8px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--line-2);
  transition: width 0.35s var(--ease-spring), background 0.3s ease;
}
.dot.active { width: 24px; background: var(--accent-grad); }
.gallery-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center; color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  padding-bottom: 28px;
}

/* like button */
.like-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(8, 14, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px; font-weight: 700;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, background 0.3s ease;
}
.like-btn svg { width: 15px; height: 15px; }
.like-btn .heart-path { fill: transparent; stroke: currentColor; stroke-width: 2; transition: fill 0.25s ease; }
.like-btn:hover { transform: scale(1.06); }
.like-btn.liked { background: rgba(229, 72, 77, 0.24); border-color: rgba(255, 105, 110, 0.55); }
.like-btn.liked .heart-path { fill: #ff6369; stroke: #ff6369; }
.like-btn.pop { animation: likePop 0.45s var(--ease-spring); }
@keyframes likePop { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* --------------------------------- lightbox ------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: flex; flex-direction: column;
  background: rgba(2, 5, 13, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-top {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 26px;
}
.lb-title-wrap { min-width: 0; }
.lb-title-wrap h3 { font-size: 1.12rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-badge { display: inline-flex; padding: 3px 12px; border-radius: 999px; background: var(--accent-grad); color: #fff; font-size: 11.5px; font-weight: 700; margin-right: 10px; }
.lb-counter { color: var(--muted); font-size: 13px; font-weight: 600; }
.lb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid; place-items: center;
  overflow: hidden;
  padding: 0 26px;
  cursor: default;
  touch-action: none;
}
.lb-stage.zoomed { cursor: grab; }
.lb-stage.zoomed:active { cursor: grabbing; }
.lb-stage.pan-mode { cursor: grab; }
.lb-stage.pan-mode:active { cursor: grabbing; }
.lb-frame {
  position: relative; max-width: 88%; max-height: 100%;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  will-change: transform;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.45s var(--ease-spring), opacity 0.35s ease;
}
.lightbox.open .lb-frame { transform: scale(1); opacity: 1; }
.lb-img {
  display: block;
  max-width: min(88vw, 1100px);
  max-height: calc(100vh - 235px);
  width: auto; height: auto;
  object-fit: contain;
  user-select: none; -webkit-user-drag: none;
  transition: opacity 0.18s ease;
}
.lb-img.fading { opacity: 0; }
.lb-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 26px 30px;
}
.lb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13.5px; font-weight: 600;
  transition: transform 0.35s var(--ease-spring), background 0.3s ease, border-color 0.3s ease;
}
.lb-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.3); }
.lb-btn:disabled { opacity: 0.55; cursor: wait; pointer-events: none; }
.lb-btn.active { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.lb-btn svg { width: 16px; height: 16px; flex: none; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease-spring), background 0.3s ease;
}
.lb-nav:hover { transform: translateY(-50%) scale(1.1); background: rgba(255, 255, 255, 0.16); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-bar { display: inline-flex; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); }
.lb-bar .lb-btn { border: 0; border-radius: 0; }
.lb-cta { background: var(--accent-grad); border: 1px solid rgba(255, 255, 255, 0.25); box-shadow: 0 10px 28px var(--card-glow); }

/* ---------------------------------- forms --------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--card-shadow);
}
.form-title { font-size: 1.4rem; margin-bottom: 8px; }
.form-desc { color: var(--text-soft); font-size: 14px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.field.span-2 { grid-column: span 2; }
.label { font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.req { color: var(--danger); }
.input, .textarea, select.input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.input:focus, .textarea:focus, select.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--card-glow);
}
.textarea { resize: vertical; min-height: 100px; }
.field-err { display: none; color: var(--danger); font-size: 12.5px; }
.field.invalid .input, .field.invalid .textarea, .field.invalid select.input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12); }
.field.invalid .field-err { display: block; }
.field.invalid { animation: shake 0.4s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: 12.5px; margin-top: 14px; text-align: center; }

/* order layout */
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 18px;
}
.side-card h3 { font-size: 1.02rem; margin-bottom: 12px; }
.mini-steps { list-style: none; display: grid; gap: 12px; }
.mini-steps li { display: flex; gap: 12px; font-size: 13.5px; color: var(--text-soft); }
.mini-steps .dot-num {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent-grad);
  color: #fff; font-size: 12px; font-weight: 800;
}
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trust-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--text-soft);
}

/* compact selection pills (categories, style, quantity) */
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  font-size: 13.5px; font-weight: 600;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease-spring), border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.pill-opt:hover { transform: translateY(-2px); border-color: var(--line-2); color: var(--text); }
.pill-opt .pill-check { display: none; font-size: 12px; color: var(--accent); font-weight: 800; }
.pill-opt.selected {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--card-glow);
}
.pill-opt.selected .pill-check { display: inline; }

/* package picker — compact selection cards */
.pkg-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pkg-pick-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 96px;
  padding: 16px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.pkg-pick-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--card-shadow); }
.pkg-pick-card:active { transform: translateY(-1px) scale(0.99); }
.pkg-pick-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pkg-pick-card.selected {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--card-glow), var(--card-shadow);
  transform: translateY(-2px);
}
.pkg-pick-card.selected::after {
  content: '✓';
  position: absolute; top: -9px; right: -9px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff; font-size: 12px; font-weight: 800;
  box-shadow: 0 4px 12px var(--card-glow);
  animation: checkPop 0.4s var(--ease-spring);
}
@keyframes checkPop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.pp-pop {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff; font-size: 10.5px; font-weight: 800;
  white-space: nowrap;
}
.pp-name { font-weight: 700; font-size: 14.5px; color: var(--text); }
.pp-price { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pp-meta { font-size: 11.5px; color: var(--muted); }
.custom-budget-wrap { margin-top: 12px; gap: 7px; }

/* success panel */
.success-panel { text-align: center; padding: 26px 10px; }
.success-check {
  width: 78px; height: 78px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  box-shadow: 0 18px 48px rgba(10, 168, 119, 0.35);
  animation: successIn 0.7s var(--ease-spring) both;
}
.success-check svg { width: 38px; height: 38px; }
@keyframes successIn {
  0% { transform: scale(0.4) rotate(-12deg); opacity: 0; }
  60% { transform: scale(1.12) rotate(3deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.order-id-box {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 18px 0 8px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.03em;
}
.order-id-box button { color: var(--accent); font-size: 15px; }

/* --------------------------------- admin ---------------------------------- */
.admin-page { min-height: 100vh; }
.admin-top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 26px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.admin-top h1 { font-size: 1.15rem; }
.admin-top .spacer { flex: 1; }
.login-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-card {
  width: min(420px, 100%);
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px 34px;
  box-shadow: var(--card-shadow-hover);
  text-align: center;
}
.login-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 14px 36px var(--card-glow);
}
.login-err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 10px; }
.login-hint { color: var(--muted); font-size: 12.5px; margin-top: 16px; }
.admin-body { max-width: 1280px; margin: 0 auto; padding: 30px 26px 60px; }
.admin-body .admin-head-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }

/* settings + portfolio management panels */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--card-shadow);
}
.admin-panel h3 { font-size: 1.08rem; margin-bottom: 6px; }
.thumb-preview { margin-top: 12px; min-height: 46px; }
.thumb-preview img { max-width: 220px; max-height: 130px; border-radius: 10px; border: 1px solid var(--line); }
.thumb-manage-list { display: grid; gap: 10px; max-height: 520px; overflow: auto; padding-right: 4px; }
.thumb-m-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.thumb-m-img { width: 84px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.thumb-m-info { flex: 1; min-width: 0; }
.thumb-m-info b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb-m-cat { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.thumb-m-actions { display: flex; gap: 6px; flex: none; }
.pw-note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 820px) { .settings-grid { grid-template-columns: 1fr; } }
.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease;
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.stat-card .st-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; }
.stat-card .st-label { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  margin-bottom: 18px;
}
.search-input { flex: 1; min-width: 200px; }
.last-updated { color: var(--muted); font-size: 12.5px; }
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}
table.orders { width: 100%; border-collapse: collapse; min-width: 900px; }
.orders th {
  text-align: left;
  padding: 14px 16px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.orders td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13.8px; vertical-align: top; }
.orders tr:last-child td { border-bottom: 0; }
.orders tbody tr { cursor: pointer; transition: background 0.25s ease; }
.orders tbody tr:hover { background: var(--surface-2); }
.cell-main b { display: block; font-size: 14px; }
.cell-main span { color: var(--muted); font-size: 12.5px; }
.badge-status {
  display: inline-flex; padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  border: 1px solid;
}
.badge-status.st-pending { color: var(--warning); background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.35); }
.badge-status.st-accepted { color: var(--accent); background: rgba(47, 107, 255, 0.10); border-color: var(--line-2); }
.badge-status.st-in-progress { color: var(--violet); background: rgba(122, 92, 255, 0.12); border-color: rgba(122, 92, 255, 0.4); }
.badge-status.st-completed { color: var(--success); background: rgba(10, 168, 119, 0.10); border-color: rgba(10, 168, 119, 0.35); }
.badge-status.st-cancelled { color: var(--danger); background: rgba(229, 72, 77, 0.10); border-color: rgba(229, 72, 77, 0.35); }
.email-chip { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid; }
.email-chip.em-sent, .email-chip.ok { color: var(--success); background: rgba(10, 168, 119, 0.08); border-color: rgba(10, 168, 119, 0.3); }
.email-chip.em-queued, .email-chip.em-dev-mode, .email-chip.warn { color: var(--warning); background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.3); }
.email-chip.em-failed, .email-chip.err { color: var(--danger); background: rgba(229, 72, 77, 0.08); border-color: rgba(229, 72, 77, 0.3); }
.row-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, color 0.3s ease;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--line-2); color: var(--accent); }
.icon-btn.danger:hover { border-color: rgba(229, 72, 77, 0.5); color: var(--danger); }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .big { font-size: 44px; margin-bottom: 10px; }
.status-select {
  padding: 9px 13px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
}
.status-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--card-glow); }
.admin-badge { padding: 5px 14px; border-radius: 999px; background: var(--accent-grad); color: #fff; font-size: 12px; font-weight: 700; }

/* drawer */
.drawer {
  position: fixed; top: 0; right: 0; z-index: 110;
  width: min(420px, 100%);
  height: 100vh;
  background: var(--bg-soft);
  border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.4);
  transform: translateX(102%);
  transition: transform 0.5s var(--ease-spring);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.drawer-head h3 { font-size: 1.05rem; }
.drawer-body { padding: 24px; overflow-y: auto; flex: 1; }
.kv { display: grid; gap: 14px; }
.kv .value-row { display: flex; flex-direction: column; gap: 2px; }
.kv .value-row b { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.kv .value-row span { font-size: 14px; word-break: break-word; }
.drawer-actions { display: grid; gap: 10px; padding: 18px 24px; border-top: 1px solid var(--line); }
.admin-head-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 20px; }

/* ------------------------------- contact page ----------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease-spring), border-color 0.4s ease, box-shadow 0.4s ease;
}
.contact-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--card-shadow-hover); }
.contact-card h3 { font-size: 1.05rem; margin: 16px 0 8px; }
.contact-card p { color: var(--text-soft); font-size: 14px; margin-bottom: 16px; }
.sc-num { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; }
.sc-handle { color: var(--accent); font-weight: 700; font-size: 14px; }
.sc-label { color: var(--muted); font-size: 12.5px; }
.value-ic {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 24px var(--card-glow);
}
/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item.open { border-color: var(--line-2); box-shadow: var(--card-shadow); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px;
  font-weight: 700; font-size: 15px;
  text-align: left;
}
.faq-q .value-ic { width: 26px; height: 26px; border-radius: 9px; transition: transform 0.45s var(--ease-spring); }
.faq-q .value-ic svg { width: 13px; height: 13px; }
.faq-item.open .faq-q .value-ic { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease-spring);
}
.faq-a p { padding: 0 22px 20px; color: var(--text-soft); font-size: 14px; }
/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 14px 0 18px; }
.about-copy p { color: var(--text-soft); margin-bottom: 14px; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tool-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 700; color: var(--text-soft);
  box-shadow: var(--card-shadow);
}
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease-spring), border-color 0.4s ease;
}
.value-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.value-card h3 { font-size: 1rem; margin: 16px 0 8px; }
.value-card p { color: var(--text-soft); font-size: 13.8px; }

/* ------------------------------- track page ------------------------------- */
.track-card { max-width: 640px; margin: 0 auto 26px; }
.track-card .field input { font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.track-result { max-width: 640px; margin: 0 auto; }
.track-status-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--card-shadow-hover);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: slideUp 0.6s var(--ease-spring) both;
}
.track-status-card::before {
  content: '';
  position: absolute; left: 50%; top: -190%;
  width: 560px; aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid var(--halo-line);
  box-shadow: 0 0 90px 8px var(--halo-glow) inset;
  pointer-events: none;
}
.track-status-card > * { position: relative; }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.track-status-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.track-status-head h2 { margin: 8px 0 0; font-size: 1.45rem; }
.stepper { display: flex; align-items: flex-start; margin: 34px 0 8px; }
.t-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; text-align: center; }
.t-step:not(:last-child)::after {
  content: ''; position: absolute; top: 18px;
  left: calc(50% + 26px); right: calc(-50% + 26px);
  height: 3px; border-radius: 3px;
  background: var(--line);
  transition: background 0.5s ease;
}
.t-step.done:not(:last-child)::after { background: linear-gradient(90deg, var(--success), var(--accent)); }
.t-dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 2px solid var(--line);
  color: var(--muted);
  font-weight: 800; font-size: 14px;
  z-index: 1;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.t-step.done .t-dot { background: var(--success); border-color: var(--success); color: #fff; }
.t-step.current .t-dot {
  background: var(--accent-grad);
  border-color: var(--accent);
  color: #fff;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 5px var(--card-glow), 0 0 24px 4px var(--card-glow); }
  50% { box-shadow: 0 0 0 12px var(--card-glow), 0 0 34px 8px var(--card-glow); }
}
.t-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.t-step.current .t-label, .t-step.done .t-label { color: var(--text); }
.cancel-banner {
  margin-top: 18px;
  background: rgba(229, 72, 77, 0.1);
  color: var(--danger);
  border: 1px solid rgba(229, 72, 77, 0.3);
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 14px;
}
.track-summary {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px;
  margin-top: 26px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.ts-item b { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.ts-item span { font-size: 14px; font-weight: 600; word-break: break-word; }
.track-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.track-error {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 54px 26px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  box-shadow: var(--card-shadow-hover);
  animation: slideUp 0.6s var(--ease-spring) both;
}
.track-error .big { font-size: 46px; margin-bottom: 10px; }
.track-error p { color: var(--text-soft); font-size: 14px; margin: 8px 0 20px; max-width: 420px; margin-inline: auto; }

/* --------------------------------- 404 ------------------------------------ */
.err-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; position: relative; overflow: hidden; }
.err-code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800; line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.err-page h1 { font-size: 1.6rem; margin: 14px 0 10px; }
.err-page p { color: var(--text-soft); margin-bottom: 26px; }

/* --------------------------------- toasts --------------------------------- */
.tf-toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 300;
  transform: translateX(-50%) translateY(16px);
  max-width: min(480px, calc(100vw - 40px));
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow-hover);
  font-size: 14px; font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-spring);
}
.tf-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.tf-toast.success { border-color: rgba(10, 168, 119, 0.5); }
.tf-toast.error { border-color: rgba(229, 72, 77, 0.55); }
.tf-toast.info { border-color: rgba(245, 158, 11, 0.5); }
.tf-toast-btn {
  margin-left: 12px;
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), background 0.25s ease;
  white-space: nowrap;
}
.tf-toast-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.22); }
a.tf-toast-btn { text-decoration: none; }
.tf-toast-msg { display: inline; }

/* ------------------------------ theme switch veil ------------------------- */
.theme-veil { position: fixed; inset: 0; z-index: 9999; pointer-events: none; will-change: clip-path; }

/* --------------------------------- receipt -------------------------------- */
#receiptWrap { display: none; }
/* (printing is handled by a dedicated hidden iframe with its own A4 template —
   the rest of the page is never part of the printed output) */

/* ------------------------------- responsive ------------------------------- */
@media (max-width: 1200px) {
  .cat-grid.compact { grid-template-columns: repeat(4, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1020px) {
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
  }
  .nav-links.show { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .nav-cta { margin-top: 12px; justify-content: center; }
  .burger { display: flex; }
  .hero { padding: 40px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  /* on narrow/short screens the artwork used to sit ~660px down, i.e. below the fold —
     lead with the thumbnails so the work is visible without scrolling */
  .hero-visual { order: -1; }
  .hero-copy { max-width: 640px; }
  .hero-feature { width: min(520px, 100%); padding-top: 4px; }
  .cat-grid.compact { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .pkg-grid, .quote-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .pkg-pick { grid-template-columns: repeat(2, 1fr); }
  .order-layout { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .values-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .values-grid { margin-top: 44px; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 20px 14px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .service-grid, .steps { grid-template-columns: 1fr; }
  .pkg-pick { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pkg-pick-card { min-height: 84px; padding: 13px 10px; }
  .cat-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .track-summary { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 24px 20px; }
  .track-status-card { padding: 24px 20px; }
  /* mobile hero — natural stack, no absolute offsets, no overflow */
  .hero { padding: 48px 0 56px; }
  .hero-feature { width: min(440px, 100%); padding: 8px 2px 40px; }
  .thumb-card { transform: perspective(900px) rotateX(var(--rx, 2deg)) rotateY(var(--ry, -3deg)); }
  .hero-arrow { width: 38px; height: 38px; font-size: 18px; }
  .hero-arrow.hero-arrow-prev { left: 2px; }
  .hero-arrow.hero-arrow-next { right: 2px; }
  .fb-1 { left: 4px; bottom: -12px; }
  .fb-2 { right: 4px; top: -12px; }
  .halo { width: min(92vw, 520px); }
  .orb { opacity: calc(var(--orb-opacity) * 0.7); transform: scale(0.7); }
  .particle.p4, .particle.p5, .particle.p6 { display: none; }
  .blob { filter: blur(48px); }
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .cat-panel { border-left: 0; }
  .cta-band { padding: 48px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .drawer { width: 100%; }
  .cursor-glow { display: none; }
  .orb, .particle { transform: scale(0.8); }
}
@media (max-width: 460px) {
  .cat-grid, .cat-grid.compact { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-name { font-size: 0.85rem; }
  .hero-ctas .btn { width: 100%; }
  .hero-chips .chip { padding: 6px 12px; font-size: 11.5px; }
  .pkg-pick { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pill-opt { padding: 7px 13px; font-size: 12.5px; }
  .t-label { font-size: 10.5px; }
}

/* ------------------ mobile & tablet refinement (lightbox/gallery) ------- */
@media (max-width: 720px) {
  .lb-top { flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
  .lb-title-wrap { flex: 1; min-width: 0; }
  .lb-title-wrap h3 { font-size: 1rem; white-space: normal; }
  .lb-actions { padding: 14px 12px 22px; gap: 8px; }
  .lb-btn { padding: 9px 13px; font-size: 12.5px; }
  .lb-cta { font-size: 12px; }
  .lb-stage { padding: 0 12px; }
  .lb-img { max-height: calc(100vh - 210px); }
  .gallery { padding: 28px 0 18px; }
  .gallery-track { padding: 8px 16px 16px; gap: 14px; }
  .gallery-item { flex-basis: clamp(260px, 90%, 500px); }
  .cat-head { padding: 16px 18px; gap: 12px; }
  .cat-head h2 { font-size: 1.15rem; }
  .cat-head p { font-size: 12px; }
  .g-nav { width: 40px; height: 40px; }
  .g-prev { left: 6px; } .g-next { right: 6px; }
}
@media (max-width: 460px) {
  .lb-actions { gap: 7px; }
  .lb-btn { padding: 8px 11px; }
  .lb-cta { width: 100%; justify-content: center; }
}

/* ----------------------------- reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}
