/* frontend/css/home.css � v4 Editorial Redesign */
/* K? c�u chuy?n c?a b?n tr�n chi?c �o. */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Cinematic editorial � warm paper default (light). Dark lives under
     [data-theme="dark"] below. Single accent: champagne gold. */
  --hp-accent: #c19856;
  --hp-accent-hover: #a37c3a;
  --hp-accent-text: #7d5f2c; /* Darker gold for text on light backgrounds - meets WCAG AA 4.5:1 */
  --hp-accent-soft: rgba(193, 152, 86, 0.14);
  --hp-ink-indigo: #8a7a52;
  --hp-ink-indigo-soft: rgba(138, 122, 82, 0.12);
  --hp-ink-gold: #a37c3a;
  --hp-ink-gold-text: #7d5f2c; /* Darker gold for text on light backgrounds */
  --hp-ink-gold-soft: rgba(163, 124, 58, 0.12);
  --hp-ink-teal: #6f7a5e;
  --hp-ink-teal-soft: rgba(111, 122, 94, 0.12);
  --hp-gradient: #c19856;
  --hp-gradient-text: #c19856;
  --hp-bg: #f5f2eb;
  --hp-bg-subtle: #ece4d3;
  --hp-card: #fffdf8;
  --hp-card-hover: #f7f1e3;
  --hp-raised: #fffdf8;
  --hp-border: rgba(15, 12, 9, 0.12);
  --hp-border-strong: rgba(15, 12, 9, 0.24);
  --hp-text: #0f0c09;
  --hp-text-secondary: #3f3830;
  --hp-text-muted: #6d6358;
  --hp-text-tertiary: #8e7657;
  --hp-glass: rgba(255, 253, 248, 0.82);
  --hp-glass-border: rgba(15, 12, 9, 0.12);
  --hp-glass-hover: #fffdf8;
  --hp-radius: 2px;
  --hp-radius-sm: 2px;
  --hp-radius-lg: 4px;
  --hp-shadow: 0 1px 0 rgba(15, 12, 9, 0.04), 0 16px 40px rgba(15, 12, 9, 0.1);
  --hp-shadow-lg:
    0 2px 0 rgba(15, 12, 9, 0.04), 0 28px 70px rgba(15, 12, 9, 0.16);
  --hp-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --hp-transition-spring: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --hp-section-bloom: radial-gradient(
    ellipse 70% 40% at 50% 0%,
    rgba(193, 152, 86, 0.12) 0%,
    transparent 70%
  );
  --hp-seam: 1px dashed rgba(163, 124, 58, 0.55);
  --hp-seam-light: rgba(15, 12, 9, 0.22);
  --hp-ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --hp-ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --hp-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

  /* motion system � award-winning easing & durations */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-ui: 220ms;
  --dur-small: 280ms;
  --dur-section: 700ms;
  --stagger-base: 60ms;
}

[data-theme="dark"] {
  --hp-accent: #d5b178;
  --hp-accent-hover: #c19856;
  --hp-accent-text: #d5b178; /* In dark mode, accent-text is the bright gold */
  --hp-accent-soft: rgba(213, 177, 120, 0.16);
  --hp-ink-indigo: #b3a071;
  --hp-ink-indigo-soft: rgba(179, 160, 113, 0.14);
  --hp-ink-gold: #d5b178;
  --hp-ink-gold-text: #d5b178; /* In dark mode, ink-gold-text is the bright gold */
  --hp-ink-gold-soft: rgba(213, 177, 120, 0.14);
  --hp-ink-teal: #9aa27e;
  --hp-ink-teal-soft: rgba(154, 162, 126, 0.14);
  --hp-gradient: #d5b178;
  --hp-gradient-text: #d5b178;
  --hp-bg: #14110d;
  --hp-bg-subtle: #1d1b18;
  --hp-card: #1d1b18;
  --hp-card-hover: #26221c;
  --hp-raised: #26221c;
  --hp-border: rgba(245, 242, 235, 0.12);
  --hp-border-strong: rgba(245, 242, 235, 0.22);
  --hp-text: #f5f2eb;
  --hp-text-secondary: #cfc6b4;
  --hp-text-muted: #a89c85;
  --hp-text-tertiary: #8e7657;
  --hp-glass: rgba(29, 27, 24, 0.85);
  --hp-glass-border: rgba(245, 242, 235, 0.14);
  --hp-glass-hover: #26221c;
  --hp-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.4);
  --hp-shadow-lg: 0 2px 0 rgba(0, 0, 0, 0.4), 0 28px 70px rgba(0, 0, 0, 0.5);
  --hp-section-bloom: radial-gradient(
    ellipse 70% 40% at 50% 0%,
    rgba(213, 177, 120, 0.1) 0%,
    transparent 70%
  );
  --hp-seam: 1px dashed rgba(213, 177, 120, 0.55);
  --hp-seam-light: rgba(245, 242, 235, 0.22);
}

/* ============================================================
   HOMEPAGE BASE � apply the homepage theme to the real body
   (fix: body previously kept style.css white background while
   every homepage component is designed for --hp-bg)
   ============================================================ */
body.home-page {
  background: var(--hp-bg);
  color: var(--hp-text);
  font-family:
    "Be Vietnam Pro",
    "Manrope",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  transition:
    background-color var(--hp-transition),
    color var(--hp-transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Homepage buttons speak in DM Mono (process role) */
body.home-page .btn {
  font-family: var(--font-mono);
}

/* ============================================================
   MICRO-INTERACTIONS � branded selection, focus, hover, scroll reveal
   ============================================================ */
::selection {
  background: var(--hp-accent);
  color: #fffdf6;
}

::selection {
  background: var(--hp-accent);
  color: #fffdf6;
}

*:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 2px;
}

/* hover lift � consistent across interactive surfaces */
.hover-lift {
  transition:
    transform var(--dur-small) var(--ease-out-expo),
    box-shadow var(--dur-small) var(--ease-out-expo);
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--hp-shadow-lg);
}

/* link underline slide */
.link-slide {
  position: relative;
  text-decoration: none;
}

.link-slide::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--hp-accent);
  transition: width var(--dur-ui) var(--ease-out-expo);
}

.link-slide:hover::after {
  width: 100%;
}

/* scroll reveal � sections fade in from below */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-section) var(--ease-out-expo),
    transform var(--dur-section) var(--ease-out-expo);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* stagger children inside revealed sections */
[data-reveal].revealed > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s var(--ease-out-expo),
    transform 0.55s var(--ease-out-expo);
}

[data-reveal].revealed > *:nth-child(1) {
  transition-delay: 0ms;
}
[data-reveal].revealed > *:nth-child(2) {
  transition-delay: var(--stagger-base);
}
[data-reveal].revealed > *:nth-child(3) {
  transition-delay: calc(var(--stagger-base) * 2);
}
[data-reveal].revealed > *:nth-child(4) {
  transition-delay: calc(var(--stagger-base) * 3);
}
[data-reveal].revealed > *:nth-child(5) {
  transition-delay: calc(var(--stagger-base) * 4);
}
[data-reveal].revealed > *:nth-child(6) {
  transition-delay: calc(var(--stagger-base) * 5);
}

/* hero load choreography � elements hidden until JS runs */
.hero-load-hidden {
  opacity: 0 !important;
  transform: translateY(20px) !important;
}

/* hero load stagger entrance */
@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes cursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes morphGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes tiltGlow {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.anim-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-section) var(--ease-out-expo),
    transform var(--dur-section) var(--ease-out-expo);
}

.anim-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children when parent becomes visible � use animation, not transition,
   so children are never stuck at opacity:0 if the observer fires late */
@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.anim-on-scroll.visible > * {
  animation: staggerFadeIn 0.5s var(--ease-out-expo) both;
}
.anim-on-scroll.visible > *:nth-child(1) {
  animation-delay: 0ms;
}
.anim-on-scroll.visible > *:nth-child(2) {
  animation-delay: var(--stagger-base);
}
.anim-on-scroll.visible > *:nth-child(3) {
  animation-delay: calc(var(--stagger-base) * 2);
}
.anim-on-scroll.visible > *:nth-child(4) {
  animation-delay: calc(var(--stagger-base) * 3);
}
.anim-on-scroll.visible > *:nth-child(5) {
  animation-delay: calc(var(--stagger-base) * 4);
}
.anim-on-scroll.visible > *:nth-child(6) {
  animation-delay: calc(var(--stagger-base) * 5);
}

.anim-fade-up {
  animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.anim-scale-in {
  animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ============================================================
   EDITORIAL SECTION META (numbers + badges)
   ============================================================ */
.section-header {
  position: relative;
}

.section-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-badge,
.cta-badge {
  color: var(--hp-accent);
}

.live-prompt-label {
  color: var(--hp-accent);
}

.studio-preview-prompt-label {
  color: var(--hp-accent);
}

.section-meta-divider {
  width: 24px;
  height: 1px;
  background: var(--hp-border-strong);
}

.section-meta-divider {
  background: var(--hp-border-strong);
}

.section-meta .section-badge {
  margin-bottom: 0;
}

/* ============================================================
   SECTION BLOOM
   ============================================================ */
.section-bloom {
  position: absolute;
  inset: 0;
  background: var(--hp-section-bloom);
  pointer-events: none;
}

.bloom-indigo {
  background: radial-gradient(
    ellipse 70% 42% at 50% 0%,
    rgba(143, 147, 242, 0.13) 0%,
    transparent 70%
  );
}

.bloom-gold {
  background: radial-gradient(
    ellipse 70% 42% at 50% 0%,
    rgba(233, 181, 92, 0.13) 0%,
    transparent 70%
  );
}

.bloom-teal {
  background: radial-gradient(
    ellipse 70% 42% at 50% 0%,
    rgba(95, 196, 180, 0.12) 0%,
    transparent 70%
  );
}

.bloom-indigo {
  background: radial-gradient(
    ellipse 70% 42% at 50% 0%,
    rgba(79, 70, 165, 0.1) 0%,
    transparent 70%
  );
}

.bloom-gold {
  background: radial-gradient(
    ellipse 70% 42% at 50% 0%,
    rgba(168, 114, 26, 0.1) 0%,
    transparent 70%
  );
}

.bloom-teal {
  background: radial-gradient(
    ellipse 70% 42% at 50% 0%,
    rgba(23, 122, 109, 0.09) 0%,
    transparent 70%
  );
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--hp-bg);
  border-bottom: 1px solid var(--hp-border);
  transition: var(--hp-transition);
}

.nav {
  background: var(--hp-bg);
}

.nav.scrolled {
  background: var(--hp-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.nav.scrolled {
  background: var(--hp-bg);
  box-shadow: 0 4px 24px rgba(18, 16, 13, 0.06);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--hp-text);
  letter-spacing: -0.03em;
}

.nav-logo-accent {
  color: var(--hp-accent);
}

.nav-menu {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--hp-text-secondary);
  text-decoration: none;
  border-radius: var(--hp-radius-sm);
  transition: var(--hp-transition);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--hp-text);
  background: var(--hp-card);
}

.nav-link:active {
  background: var(--hp-card-hover);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-theme {
  width: 36px;
  height: 36px;
  border-radius: var(--hp-radius-sm);
  border: 1px solid var(--hp-border);
  background: var(--hp-glass);
  color: var(--hp-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--hp-transition);
}

.nav-theme:hover {
  border-color: var(--hp-accent);
  color: var(--hp-accent);
  background: var(--hp-accent-soft);
}

.moon-icon {
  display: none;
}
[data-theme="dark"] .sun-icon {
  display: none;
}

.nav-lang {
  display: flex;
  background: var(--hp-glass);
  border-radius: var(--hp-radius-sm);
  padding: 3px;
  border: 1px solid var(--hp-border);
}

.nav-lang button {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--hp-text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  border-radius: 6px;
  transition: var(--hp-transition);
  letter-spacing: 0.03em;
}

.nav-lang button.active {
  background: var(--hp-bg-subtle);
  color: var(--hp-text);
}

.nav-cta {
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff7ee;
  background: var(--hp-gradient);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-bottom-width: 3px;
  border-radius: var(--hp-radius-sm);
  text-decoration: none;
  transition: var(--hp-transition-spring);
  box-shadow: var(--hp-shadow);
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--hp-accent-hover);
  box-shadow: var(--hp-shadow-lg);
}

.nav-cta:active {
  transform: translateY(0);
  border-bottom-width: 1px;
}

/* Auth user menu / login button injected by auth.js into .nav-actions */
.home-page .nav-actions .user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--hp-glass);
  border: 1px solid var(--hp-border);
  color: var(--hp-text);
  cursor: pointer;
  transition: var(--hp-transition);
}

.home-page .nav-actions .user-menu-trigger:hover {
  border-color: var(--hp-accent);
  background: var(--hp-glass-hover);
}

.home-page .nav-actions .user-name-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hp-text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .nav-actions .user-trigger-label {
  color: var(--hp-text-tertiary);
}

.home-page .nav-actions .avatar-circle {
  width: 30px;
  height: 30px;
  background: var(--hp-gradient);
  color: #fff;
  font-weight: 700;
}

.home-page .nav-actions .chevron-down {
  color: var(--hp-text-tertiary);
  font-size: 0.7rem;
}

.home-page .nav-actions .btn-ghost {
  border-color: var(--hp-border);
  color: var(--hp-text);
  background: var(--hp-glass);
}

.home-page .nav-actions .btn-ghost:hover {
  border-color: var(--hp-accent);
  color: var(--hp-accent);
  background: var(--hp-glass-hover);
}

.home-page .nav-actions .user-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 250px;
  background: #1c1915;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--hp-radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  padding: 10px;
  z-index: 1100;
}

.home-page .nav-actions .user-dropdown {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.home-page .nav-actions .user-dropdown-header strong {
  color: var(--hp-text);
}

.home-page .nav-actions .user-dropdown-header span {
  color: var(--hp-text-tertiary);
}

.home-page .nav-actions .dropdown-item {
  color: var(--hp-text-secondary);
}

.home-page .nav-actions .dropdown-item:hover {
  background: var(--hp-card-hover);
  color: var(--hp-text);
}

.home-page .nav-actions .dropdown-item-icon {
  color: var(--hp-text-tertiary);
  border-color: var(--hp-border-strong);
}

.home-page .nav-actions .dropdown-item.logout-btn {
  color: #ff6b6b;
}

.home-page .nav-actions .dropdown-item.logout-btn:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.home-page .nav-actions .user-dropdown hr {
  border-color: var(--hp-border);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  width: 20px;
  height: 2px;
  background: var(--hp-text);
  border-radius: 2px;
  transition: var(--hp-transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 28px 60px;
  overflow: hidden;
  background: var(--hp-bg);
}

/* neutralize style.css leaks onto the homepage */
body.home-page .hero {
  background: var(--hp-bg);
  color: var(--hp-text);
}

body.home-page .footer {
  background: var(--hp-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(
    115deg,
    rgba(224, 90, 36, 0.1) 0%,
    rgba(18, 16, 13, 0) 38%,
    rgba(143, 147, 242, 0.1) 100%
  );
}

.hero-bg {
  background: linear-gradient(
    115deg,
    rgba(180, 62, 18, 0.08) 0%,
    rgba(246, 241, 230, 0) 40%,
    rgba(79, 70, 165, 0.08) 100%
  );
}

.hero-mark {
  position: absolute;
  left: -150px;
  bottom: -170px;
  width: 580px;
  height: 580px;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='92' fill='none' stroke='%23e05a24' stroke-opacity='0.32' stroke-width='1.5' stroke-dasharray='4 10'/%3E%3Ccircle cx='100' cy='100' r='78' fill='none' stroke='%23e05a24' stroke-opacity='0.16' stroke-width='1'/%3E%3Cg stroke='%23e05a24' stroke-opacity='0.5' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='100' y1='14' x2='100' y2='186'/%3E%3Cline x1='26' y1='57' x2='174' y2='143'/%3E%3Cline x1='174' y1='57' x2='26' y2='143'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  animation: markSpin 120s linear infinite;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 62% 45% at 30% -12%,
    rgba(224, 90, 36, 0.22) 0%,
    transparent 62%
  );
  animation: washDriftA 55s ease-in-out infinite alternate;
}

.hero-grid {
  display: none;
}

.hero-grid {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--hp-accent-soft);
  border: 1px solid var(--hp-seam);
  border-radius: var(--hp-radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hp-accent);
  width: fit-content;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hp-accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--hp-font, "Be Vietnam Pro"), Arial, sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.12; /* VN diacritics need air; was 1.04 */
  letter-spacing: -0.02em;
  color: #fffdf6;
  margin: 0;
  text-wrap: balance;
}

.hero-title {
  color: var(--hp-text);
  text-shadow: none;
}

/* VN display headline: BVP + healthy line-height for stacked marks */
.hero-title,
.hero-title-line,
.hero-title-gradient {
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-title-sub {
  display: block;
  font-size: 0.42em;
  font-weight: 800;
  color: var(--hp-text-tertiary);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 14px;
  line-height: 1.3;
}

.hero-title-line {
  display: block;
}

.hero-title-gradient {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--hp-accent-hover);
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--hp-text-secondary);
  margin: 0;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff7ee;
  background: var(--hp-gradient);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-bottom-width: 3px;
  border-radius: var(--hp-radius);
  text-decoration: none;
  transition:
    transform var(--dur-ui) var(--ease-out-expo),
    background var(--dur-ui) var(--ease-out-expo),
    box-shadow var(--dur-ui) var(--ease-out-expo);
  box-shadow: var(--hp-shadow);
  position: relative;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  background: var(--hp-accent-hover);
  box-shadow: var(--hp-shadow-lg);
}

.hero-btn-primary:active {
  transform: translateY(0);
  border-bottom-width: 1px;
}

.hero-btn-primary svg {
  transition: transform 0.3s ease;
}

.hero-btn-primary:hover svg {
  transform: rotate(-15deg) scale(1.1);
}

.hero-btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hp-text-secondary);
  background: var(--hp-glass);
  border: 1px solid var(--hp-glass-border);
  border-radius: var(--hp-radius);
  text-decoration: none;
  transition: var(--hp-transition);
}

.hero-btn-secondary:hover {
  color: var(--hp-text);
  border-color: var(--hp-border-strong);
  background: var(--hp-card-hover);
  transform: translateY(-2px);
}

/* Hero Right — Interactive Canvas */
.hero-visual {
  position: relative;
}

.hero-canvas-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-canvas-glow {
  display: none;
}

.hero-mockup-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--hp-raised);
  border: 1px solid var(--hp-border-strong);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  box-shadow: var(--hp-shadow-lg);
  transform-style: preserve-3d;
  perspective: 800px;
}

.hero-mockup-card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 0;
  height: 0;
  border-top: 1px dashed var(--hp-seam-light);
  border-left: 1px dashed var(--hp-seam-light);
  z-index: 3;
  pointer-events: none;
}

.hero-mockup-card::after {
  content: "";
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 0;
  height: 0;
  border-bottom: 1px dashed var(--hp-seam-light);
  border-right: 1px dashed var(--hp-seam-light);
  z-index: 3;
  pointer-events: none;
}

.hero-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px dashed var(--hp-seam);
}

.hero-mockup-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-text);
}

.hero-mockup-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hp-accent);
  padding: 4px 10px;
  border-radius: var(--hp-radius-sm);
  border: 1px solid var(--hp-seam);
  background: var(--hp-accent-soft);
  letter-spacing: 0.04em;
}

.hero-mockup-body {
  padding: 20px;
}

.hero-mockup-prompt {
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.hero-mockup-prompt-text {
  font-size: 0.82rem;
  color: var(--hp-text-secondary);
  overflow: hidden;
  white-space: nowrap;
}

.hero-typing-wrapper {
  display: inline-flex;
  align-items: center;
}

.hero-typing-text {
  font-size: 0.82rem;
  color: var(--hp-text);
  font-weight: 500;
}

.hero-typing-cursor {
  color: var(--hp-accent);
  animation: cursorBlink 0.8s step-end infinite;
  margin-left: 2px;
  font-weight: 400;
}

.hero-mockup-result {
  position: relative;
  border-radius: var(--hp-radius);
  overflow: hidden;
  background: #f3eddf;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mockup-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20%;
}

.hero-mockup-fallback svg {
  width: 100%;
  height: 100%;
}

.hero-mockup-svg {
  width: 80%;
  height: 80%;
}

.hero-mockup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--hp-glass-border);
}

.hero-mockup-tag {
  font-size: 0.78rem;
  color: var(--hp-text-muted);
}

.hero-mockup-price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--hp-accent);
  font-variant-numeric: tabular-nums;
}

/* Hero floating cards � garment tags: solid kraft + stitched seam border */
.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--hp-raised);
  border: 1px dashed var(--hp-seam);
  border-radius: var(--hp-radius-sm);
  box-shadow: var(--hp-shadow);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hp-text);
  white-space: nowrap;
}

.hero-float-1 {
  top: 5%;
  right: -10px;
  animation-delay: 0s;
}

.hero-float-2 {
  bottom: 20%;
  left: -20px;
  animation-delay: 1.5s;
}

.hero-float-count {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--hp-accent);
}

.hero-artwork-empty {
  display: none;
}

.hero-float-3 {
  bottom: 5%;
  right: 5%;
  animation-delay: 3s;
}

.hero-float-price {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--hp-accent);
}

/* Hero Trust Bar */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.hero-trust-avatars {
  display: flex;
}

.hero-trust-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  border: 2px solid var(--hp-bg);
  margin-left: -8px;
  transition: var(--hp-transition);
}

.hero-trust-avatar:first-child {
  margin-left: 0;
}

.hero-trust-avatar:hover {
  transform: translateY(-3px);
  z-index: 1;
}

.hero-trust-text {
  font-size: 0.85rem;
  color: var(--hp-text-secondary);
}

.hero-trust-text strong {
  color: var(--hp-text);
}

/* ============================================================
   LIVE PROMPT DISPLAY
   ============================================================ */
.live-prompt {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--hp-glass);
  border: 1px solid var(--hp-glass-border);
  border-radius: var(--hp-radius);
  max-width: 480px;
}

.live-prompt-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--hp-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.live-prompt-text {
  font-size: 0.82rem;
  color: var(--hp-text-secondary);
  overflow: hidden;
}

.live-prompt-text .typing-text {
  color: var(--hp-text);
  font-weight: 500;
}

.live-prompt-text .typing-cursor {
  color: var(--hp-accent);
  animation: cursorBlink 0.8s step-end infinite;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  position: relative;
  z-index: 10;
  padding: 0 28px;
  margin-top: -32px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.stats-bar.stats-loaded {
  opacity: 1;
  transform: none;
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 48px;
  background: var(--hp-raised);
  border: 1px solid var(--hp-border-strong);
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--hp-shadow);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--hp-accent);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat-item:nth-child(3) .stat-value {
  color: var(--hp-ink-indigo);
}

.stat-item:nth-child(5) .stat-value {
  color: var(--hp-ink-gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--hp-text-muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--hp-border);
}

/* ============================================================
   SECTIONS — Common
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--hp-accent-soft);
  border: 1px solid var(--hp-seam);
  border-radius: var(--hp-radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hp-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.section-badge {
  background: rgba(180, 62, 18, 0.08);
  border-color: var(--hp-seam);
}

.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--hp-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  text-wrap: balance;
}

.section-title-em {
  color: inherit;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--hp-text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

.text-gradient {
  color: var(--hp-accent);
}

.text-gradient {
  color: var(--hp-accent);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 120px 28px;
  position: relative;
  overflow: hidden;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  padding: 36px 28px;
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  transition:
    transform var(--dur-small) var(--ease-out-expo),
    background var(--dur-small) var(--ease-out-expo),
    border-color var(--dur-small) var(--ease-out-expo),
    box-shadow var(--dur-small) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--hp-gradient);
  opacity: 0;
  transition: var(--hp-transition);
}

.feature-card:hover {
  border-color: var(--hp-border-strong);
  background: var(--hp-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--hp-shadow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--hp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--hp-glass);
  border: 1px solid var(--hp-border);
  color: var(--hp-accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hp-text);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.feature-card h3 {
  color: var(--hp-accent);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--hp-text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: 120px 28px;
  background: var(--hp-bg-subtle);
  position: relative;
  overflow: hidden;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.how-step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.how-step-number {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.15; /* VN-safe air for stacked diacritics */
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  user-select: none;
  color: var(--hp-accent);
}

.how-step:nth-child(3) .how-step-number {
  color: var(--hp-ink-indigo);
}

.how-step:nth-child(5) .how-step-number {
  color: var(--hp-ink-gold);
}

.how-step-number {
  color: var(--hp-accent);
}

.how-step-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--hp-radius);
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--hp-text-secondary);
  transition: var(--hp-transition-spring);
}

.how-step-icon svg {
  width: 28px;
  height: 28px;
}

.how-step:hover .how-step-icon {
  transform: scale(1.08);
  border-color: var(--hp-accent);
  background: var(--hp-accent-soft);
}

.how-step h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hp-text);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.how-step h3 {
  color: var(--hp-accent);
}

.how-step p {
  font-size: 0.88rem;
  color: var(--hp-text-secondary);
  line-height: 1.65;
  margin: 0;
}

.how-step-connector {
  width: 60px;
  border-top: 1px dashed var(--hp-seam);
  margin-top: 70px;
  flex-shrink: 0;
}

/* ============================================================
   GALLERY / COMMUNITY
   ============================================================ */
.gallery {
  padding: 120px 28px;
  position: relative;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 48px;
}

.gallery-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 72px 24px;
  text-align: center;
  border: 1px dashed var(--hp-border);
  border-radius: var(--hp-radius);
  background: var(--hp-card);
}

.gallery-empty-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-accent);
  border-radius: var(--hp-radius-sm);
  background: var(--hp-accent-soft);
  border: 1px solid var(--hp-seam);
}

.gallery-empty h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  color: var(--hp-text);
  margin: 0;
}

.gallery-empty p {
  color: var(--hp-text-muted);
  max-width: 420px;
  margin: 0;
}

.gallery-empty .hero-btn-primary {
  margin-top: 8px;
}

.gallery-card {
  border-radius: var(--hp-radius);
  overflow: hidden;
  border: 1px solid var(--hp-border);
  background: var(--hp-card);
  transition:
    transform var(--dur-small) var(--ease-out-expo),
    box-shadow var(--dur-small) var(--ease-out-expo),
    border-color var(--dur-small) var(--ease-out-expo);
  position: relative;
}

.gallery-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hp-shadow-lg);
  border-color: var(--hp-border-strong);
}

.gallery-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.06);
}

.gallery-card-info {
  padding: 14px 16px;
}

.gallery-card-prompt {
  font-size: 0.78rem;
  color: var(--hp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  min-width: 0;
  margin-bottom: 6px;
  font-weight: 500;
}

.gallery-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--hp-text-muted);
  min-width: 0;
}

.gallery-card-meta-left {
  max-width: 55%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.gallery-card-author {
  color: var(--hp-accent);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.gallery-card-author:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.gallery-card-meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.gallery-card-comment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--hp-text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--hp-radius-sm, 4px);
  transition: all 0.2s ease;
  font-size: 0.75rem;
}
.gallery-card-comment:hover {
  color: var(--hp-accent);
  background: rgba(180, 62, 18, 0.08);
}

.gallery-card-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--hp-text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--hp-radius-sm, 4px);
  transition: all 0.2s ease;
  font-size: 0.75rem;
}
.gallery-card-like:hover {
  color: #e25555;
  background: rgba(226, 85, 85, 0.08);
}
.gallery-card-like.liked {
  color: #e25555;
}

.gallery-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff7ee;
  background: var(--hp-gradient);
  border-radius: var(--hp-radius-sm);
  opacity: 0;
  transform: translateY(-4px);
  transition: var(--hp-transition);
  pointer-events: none;
}

.gallery-card:hover .gallery-card-badge {
  opacity: 1;
  transform: translateY(0);
}

.gallery-cta {
  text-align: center;
}

/* ============================================================
   STUDIO PREVIEW
   ============================================================ */
.studio-preview {
  padding: 120px 28px;
  background: var(--hp-bg-subtle);
  position: relative;
  overflow: hidden;
}

.studio-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
}

.studio-preview-content .section-badge {
  margin-bottom: 16px;
}

.studio-preview-content .section-title {
  margin-bottom: 16px;
}

.studio-preview-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.studio-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--hp-text-secondary);
}

.studio-feature svg {
  flex-shrink: 0;
}

.studio-preview-visual {
  position: relative;
}

.studio-preview-screen {
  background: var(--hp-raised);
  border: 1px solid var(--hp-border-strong);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  box-shadow: var(--hp-shadow-lg);
}

.studio-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hp-border);
}

.studio-preview-brand {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hp-text);
}

.studio-preview-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hp-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-preview-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hp-accent);
  animation: pulse 2s ease-in-out infinite;
}

.studio-preview-content-area {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 280px;
}

.studio-preview-left {
  padding: 16px;
  border-right: 1px solid var(--hp-border);
}

.studio-preview-prompt-box {
  background: var(--hp-bg-subtle);
  border-radius: var(--hp-radius-sm);
  padding: 10px;
  margin-bottom: 12px;
}

.studio-preview-prompt-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--hp-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.studio-preview-prompt-text {
  font-size: 0.75rem;
  color: var(--hp-text-secondary);
  line-height: 1.5;
}

.studio-preview-styles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.studio-preview-style {
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hp-text-muted);
  background: var(--hp-bg-subtle);
  border-radius: 6px;
  border: 1px solid var(--hp-border);
}

.studio-preview-style.active {
  color: var(--hp-accent);
  border-color: var(--hp-accent);
  background: var(--hp-accent-soft);
}

.studio-preview-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--hp-bg-subtle);
}

.studio-preview-shirt {
  width: 100%;
  max-width: 150px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
  padding: 120px 28px;
  position: relative;
  overflow: hidden;
}

.reviews-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.review-card {
  padding: 32px;
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  transition: var(--hp-transition);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  border-color: var(--hp-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--hp-shadow);
}

.review-stars {
  color: #fbbf24;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-card p {
  font-size: 0.88rem;
  color: var(--hp-text-secondary);
  line-height: 1.7;
  margin: 0 0 auto 0;
  font-style: italic;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hp-border);
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.review-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hp-text);
}

.review-role {
  font-size: 0.78rem;
  color: var(--hp-text-muted);
  margin-top: 2px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 140px 28px;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg::before,
.cta-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cta-bg::before {
  width: 58vw;
  height: 58vw;
  left: -18vw;
  top: -22vw;
  background: radial-gradient(
    circle,
    rgba(224, 90, 36, 0.13) 0%,
    transparent 60%
  );
  animation: washDriftA 60s ease-in-out infinite alternate;
}

.cta-bg::after {
  width: 54vw;
  height: 54vw;
  right: -16vw;
  bottom: -24vw;
  background: radial-gradient(
    circle,
    rgba(143, 147, 242, 0.11) 0%,
    transparent 62%
  );
  animation: washDriftC 75s ease-in-out infinite alternate;
}

.cta-orb {
  display: none;
}

.cta-orb-1 {
  display: none;
}

.cta-orb-2 {
  display: none;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--hp-accent-soft);
  border: 1px solid var(--hp-seam);
  border-radius: var(--hp-radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hp-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.cta-badge {
  background: rgba(180, 62, 18, 0.08);
  border-color: var(--hp-seam);
}

.cta-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 600;
  color: var(--hp-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  text-wrap: balance;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--hp-text-secondary);
  margin: 0 0 36px;
  line-height: 1.65;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.cta-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--hp-text-muted);
}

.cta-trust-item svg {
  flex-shrink: 0;
}

.cta-note {
  font-size: 0.78rem;
  color: var(--hp-text-muted);
  margin-top: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 80px 28px 32px;
  border-top: 1px dashed var(--hp-seam);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--hp-text-secondary);
  margin: 0;
  line-height: 1.7;
}

.footer-desc strong {
  color: var(--hp-text);
}

.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hp-text);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  font-size: 0.85rem;
  color: var(--hp-text-secondary);
  text-decoration: none;
  transition: var(--hp-transition);
}

.footer-grid a:hover {
  color: var(--hp-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--hp-border);
  max-width: 1100px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--hp-text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-left {
    align-items: center;
  }
  .hero-badge {
    justify-self: center;
  }
  .hero-subtitle {
    margin: 0 auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .hero-visual {
    max-width: 400px;
    margin: 0 auto;
  }
  .live-prompt {
    margin: 20px auto 0;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .how-step-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio-preview .container {
    grid-template-columns: 1fr;
  }
  .reviews-track {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid .footer-contact-col {
    grid-column: 1 / -1;
  }
  .stats-inner {
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px;
  }
  .stat-divider {
    display: none;
  }
  .stat-item {
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--hp-raised);
    border: 1px solid var(--hp-border-strong);
    border-radius: var(--hp-radius-lg);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
    z-index: 100;
  }
  .nav-menu.open {
    display: flex;
    animation: hpMenuIn 0.22s ease;
  }
  .nav-menu .nav-link {
    padding: 13px 16px;
    font-size: 0.95rem;
  }
  .nav-burger {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .hero-float-card {
    display: none;
  }
  .hero-mockup-card {
    max-width: 300px;
  }
  .stats-inner {
    padding: 24px;
  }
  .studio-preview-content-area {
    grid-template-columns: 1fr;
  }
  .studio-preview-left {
    border-right: none;
    border-bottom: 1px solid var(--hp-border);
  }
  .section-title {
    font-size: 1.7rem;
  }
  .reviews {
    padding: 80px 28px;
  }
  .footer {
    padding-top: 80px;
  }
}

@keyframes hpMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
  .hero {
    padding: 84px 18px 48px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 1.45rem;
  }
  .section-sub {
    font-size: 0.85rem;
  }
  .feature-card {
    padding: 28px 20px;
  }
  .stats-inner {
    flex-direction: column;
    gap: 18px;
  }
  .stat-item {
    min-width: 0;
    width: 100%;
    padding: 0;
  }
  .collection-card {
    min-height: 260px;
  }
  .collection-info {
    padding: 18px;
  }
  .studio-preview-canvas {
    padding: 16px;
  }
  .marquee-group span:not(.marquee-star),
  .marquee-group .marquee-count {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }
  .marquee-group .marquee-star {
    margin: 0 16px;
  }
  .home-page .nav-actions .user-trigger-copy {
    display: none;
  }
  .home-page .nav-actions .user-menu-trigger {
    padding: 4px;
  }
  .home-page .nav-actions .btn-ghost {
    padding: 8px 12px;
    font-size: 0.72rem;
  }
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust-badges {
  position: relative;
  z-index: 10;
  padding: 48px 28px 0;
}

.trust-badges-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-badge-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  transition: var(--hp-transition);
}

.trust-badge-item:hover {
  border-color: var(--hp-border-strong);
  background: var(--hp-card-hover);
}

.trust-badge-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-badge-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-badge-item strong {
  font-size: 0.82rem;
  color: var(--hp-text);
}

.trust-badge-item span {
  font-size: 0.72rem;
  color: var(--hp-text-muted);
}

/* ============================================================
   GALLERY FILTERS
   ============================================================ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto 28px;
}

.gallery-filter-chip {
  padding: 7px 16px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--hp-text-secondary);
  background: var(--hp-glass);
  border: 1px solid var(--hp-glass-border);
  border-radius: var(--hp-radius-sm);
  cursor: pointer;
  transition: var(--hp-transition);
}

.gallery-filter-chip:hover {
  color: var(--hp-text);
  border-color: var(--hp-accent);
}

.gallery-filter-chip.active {
  color: #fff7ee;
  background: var(--hp-gradient);
  border-color: rgba(0, 0, 0, 0.25);
}

/* ============================================================
   GALLERY CARD — USE DESIGN OVERLAY
   ============================================================ */
.gallery-card-media {
  position: relative;
  overflow: hidden;
}

.gallery-card-use {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  color: white;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--hp-radius-sm);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: var(--hp-transition);
  white-space: nowrap;
}

.gallery-card:hover .gallery-card-use {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-card-use:hover {
  background: var(--hp-gradient);
  border-color: transparent;
}

/* ============================================================
   COLLECTIONS
   ============================================================ */
.collections {
  padding: 120px 28px;
  position: relative;
  overflow: hidden;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.collection-card {
  position: relative;
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  border: 1px solid var(--hp-border);
  transition: var(--hp-transition);
  background: var(--hp-card);
}

.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hp-shadow-lg);
  border-color: var(--hp-border-strong);
}

.collection-art {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
}

.collection-card:hover .collection-art {
  transform: scale(1.07);
}

.collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0) 30%,
    rgba(10, 10, 15, 0.92) 100%
  );
}

.collection-info {
  position: relative;
  z-index: 2;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.collection-tag {
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff7ee;
  background: var(--hp-gradient);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: var(--hp-radius-sm);
}

.collection-info h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--hp-text);
  font-weight: 700;
}

.collection-info p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--hp-text-secondary);
  line-height: 1.55;
}

.collection-cta {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hp-accent);
}

.collection-art-dragon {
  background:
    radial-gradient(
      ellipse 80% 60% at 30% 25%,
      rgba(255, 45, 85, 0.35),
      transparent 60%
    ),
    radial-gradient(
      ellipse 70% 55% at 75% 70%,
      rgba(0, 240, 255, 0.25),
      transparent 60%
    ),
    linear-gradient(160deg, #14141f 0%, #1c1220 55%, #0a0a0f 100%);
}

.collection-art-anime {
  background:
    radial-gradient(circle at 70% 20%, #ff9ecf 0, transparent 45%),
    radial-gradient(circle at 25% 75%, #8b5cf6 0, transparent 50%),
    linear-gradient(150deg, #2a1633 0%, #1a1a2e 100%);
}

.collection-art-vintage {
  background:
    radial-gradient(
      ellipse 90% 60% at 50% 30%,
      rgba(190, 132, 63, 0.5),
      transparent 65%
    ),
    linear-gradient(165deg, #3a2a1c 0%, #57402a 60%, #241a12 100%);
}

.collection-art-minimal {
  background:
    radial-gradient(circle at 70% 30%, rgba(180, 62, 18, 0.5), transparent 55%),
    linear-gradient(160deg, #efe9df 0%, #d9d2c4 60%, #c9c0ae 100%);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 120px 28px;
  position: relative;
  overflow: hidden;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  overflow: hidden;
  transition: var(--hp-transition);
}

.faq-item:hover {
  border-color: var(--hp-border-strong);
}

.faq-item[open] {
  border-color: var(--hp-accent);
  background: var(--hp-card-hover);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hp-text);
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: var(--hp-radius-sm);
  border: 1.5px solid var(--hp-accent);
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--hp-accent);
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.85rem;
  color: var(--hp-text-secondary);
  line-height: 1.7;
}

/* ============================================================
   NEW COMPONENTS — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .trust-badges-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .trust-badges {
    padding: 36px 20px 0;
  }
  .collections-grid {
    grid-template-columns: 1fr;
  }
  .collection-card {
    min-height: 240px;
  }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  background: var(--hp-accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ============================================================
   MARQUEE STRIP � stitched tape
   ============================================================ */
.marquee-strip {
  position: relative;
  z-index: 10;
  padding: 26px 0;
  overflow: hidden;
  background: var(--hp-accent);
  border-top: 1px dashed rgba(255, 247, 238, 0.6);
  border-bottom: 1px dashed rgba(255, 247, 238, 0.6);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 45s linear infinite;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-group span:not(.marquee-star) {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bfa576;
  white-space: nowrap;
}

.marquee-group .marquee-star {
  margin: 0 26px;
  color: rgba(255, 247, 238, 0.85);
  font-size: 0.85rem;
}

.marquee-group .marquee-count {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff7ee;
  white-space: nowrap;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   HERO ARTWORK � AUTO CYCLE
   ============================================================ */
.hero-mockup-result img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.hero-mockup-result img.crossfade-out {
  opacity: 0;
  transform: scale(0.93);
}

/* ============================================================
   CTA PULSE RING (hero only)
   ============================================================ */
.hero .hero-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: none;
  pointer-events: none;
}

/* ============================================================
   GALLERY CARD � 3D TILT
   ============================================================ */
.gallery-card {
  transform-style: preserve-3d;
  /* will-change managed by JS tilt lifecycle (mouseenter/leave) — never pinned */
}

/* ============================================================
   ACCESSIBILITY � skip link + visible focus
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 4000;
  padding: 10px 18px;
  background: var(--hp-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 0;
}

.home-page :focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   MOTION � subtle, garment-world; transform/opacity only
   ============================================================ */
@keyframes productFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero-canvas-area {
    animation: productFloat 7s ease-in-out infinite;
  }
}

/* corner stitches sew in on hover */
.hero-mockup-card::before,
.hero-mockup-card::after {
  transition:
    width 0.45s var(--hp-ease-enter),
    height 0.45s var(--hp-ease-enter) 0.06s;
}

.hero-mockup-card:hover::before,
.hero-mockup-card:hover::after {
  width: 16px;
  height: 16px;
}

/* tags stagger in on load */
@keyframes tagIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-float-card {
  animation: tagIn 0.8s var(--hp-ease-enter) both;
}
.hero-float-1 {
  animation-delay: 0.55s;
}
.hero-float-2 {
  animation-delay: 0.7s;
}
.hero-float-3 {
  animation-delay: 0.85s;
}

/* ink washes drift slowly across the hero � rust + indigo + gold */
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
  /* kept: infinite 65s/80s transform drift animations below are always active */
  will-change: transform;
}

.hero-bg::before {
  width: 58vw;
  height: 58vw;
  right: -16vw;
  top: -14vw;
  background: radial-gradient(
    circle,
    rgba(143, 147, 242, 0.18) 0%,
    transparent 60%
  );
  animation: washDriftB 65s ease-in-out infinite alternate;
}

.hero-bg::after {
  width: 52vw;
  height: 52vw;
  left: -12vw;
  bottom: -22vw;
  background: radial-gradient(
    circle,
    rgba(233, 181, 92, 0.16) 0%,
    transparent 62%
  );
  animation: washDriftC 80s ease-in-out infinite alternate;
}

@keyframes washDriftA {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(6vw, 4vh);
  }
}

@keyframes washDriftB {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-7vw, 6vh);
  }
}

@keyframes washDriftC {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(5vw, -6vh);
  }
}

@keyframes markSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .hero-mark {
    display: none;
  }
}

/* pointer spotlight over the product frame (desktop) */
.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    280px circle at var(--sx, 50%) var(--sy, 40%),
    rgba(242, 115, 47, 0.12),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  /* no will-change: only opacity/var() animate here, transform never does */
}

.hero-visual:hover .hero-spotlight {
  opacity: 1;
}

/* section bloom breathes softly */
.section-bloom {
  animation: bloomBreathe 16s ease-in-out infinite;
}

@keyframes bloomBreathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* feature icon nudge */
.feature-card:hover .feature-icon {
  border-color: var(--hp-accent);
  background: var(--hp-accent-soft);
}

.feature-card .feature-icon svg {
  transition: transform 0.35s var(--hp-ease-enter);
}

.feature-card:hover .feature-icon svg {
  transform: translateY(-2px) scale(1.06);
}

/* screen-print ink hues across the four features */
.feature-card:nth-child(2) .feature-icon {
  color: var(--hp-ink-indigo);
}
.feature-card:nth-child(3) .feature-icon {
  color: var(--hp-ink-gold);
}
.feature-card:nth-child(4) .feature-icon {
  color: var(--hp-ink-teal);
}

.feature-card:nth-child(2):hover .feature-icon {
  border-color: var(--hp-ink-indigo);
  background: var(--hp-ink-indigo-soft);
}
.feature-card:nth-child(3):hover .feature-icon {
  border-color: var(--hp-ink-gold);
  background: var(--hp-ink-gold-soft);
}
.feature-card:nth-child(4):hover .feature-icon {
  border-color: var(--hp-ink-teal);
  background: var(--hp-ink-teal-soft);
}

/* footer links � underline slides in */
.footer-grid a {
  background-image: linear-gradient(var(--hp-accent), var(--hp-accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition:
    color var(--hp-transition),
    background-size 0.35s var(--hp-ease-enter);
}

.footer-grid a:hover {
  background-size: 100% 1px;
}

/* FAQ � smooth open where supported (progressive enhancement) */
@supports (interpolate-size: allow-keywords) {
  .faq-item {
    interpolate-size: allow-keywords;
  }
  .faq-item::details-content {
    height: 0;
    overflow-y: clip;
    transition: height 0.35s var(--hp-ease-enter);
  }
  .faq-item[open]::details-content {
    height: auto;
  }
}

/* Mobile polish � hero CTA full-width + gallery touch affordance */
@media (max-width: 768px) {
  .hero-btn-primary {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .live-prompt {
    max-width: 100%;
  }
}
@media (hover: none) {
  .gallery-card-use {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
    REDUCED MOTION � disable decorative animations
    ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .hero-badge-dot,
  .studio-preview-status::before,
  .typing-cursor,
  .hero-typing-cursor,
  .hero-canvas-area,
  .hero-float-card,
  .hero-bg::before,
  .hero-bg::after,
  .hero-gradient,
  .hero-mark,
  .cta-bg::before,
  .cta-bg::after,
  .section-bloom,
  .staggerFadeIn {
    animation: none !important;
  }
  .marquee-track {
    transform: none;
  }
  * {
    scroll-behavior: auto !important;
  }
  .anim-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .anim-on-scroll > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ====== COMMENTS MODAL ====== */
.comments-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 13, 0.55);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.comments-modal-overlay.open {
  display: flex;
}

.comments-modal {
  background: var(--hp-card, #fff);
  border-radius: 14px;
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.comments-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hp-border, rgba(243, 237, 225, 0.09));
}
.comments-modal-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--hp-text, #f3ede1);
}
.comments-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--hp-raised, #201c15);
  border: 1px solid var(--hp-border, rgba(243, 237, 225, 0.09));
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--hp-text-muted, #8d8372);
  line-height: 1;
}
.comments-modal-close:hover {
  background: var(--hp-card-hover, #211d16);
}

.comments-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  overflow-y: auto;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 80px;
}

.comment-item {
  display: flex;
  gap: 10px;
}
.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--hp-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.comment-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hp-text, #f3ede1);
  text-decoration: none;
}
a.comment-author:hover {
  color: var(--hp-accent);
  text-decoration: underline;
}
.comment-date {
  font-size: 0.72rem;
  color: var(--hp-text-muted, #8d8372);
}
.comment-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--hp-text-secondary, #b5ab99);
  word-break: break-word;
  white-space: pre-wrap;
}

.comments-loading,
.comments-empty,
.comments-error {
  text-align: center;
  color: var(--hp-text-muted, #8d8372);
  font-size: 0.85rem;
  padding: 24px 10px;
}
.comments-error {
  color: #e25555;
}

.comments-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  border-top: 1px solid var(--hp-border, rgba(243, 237, 225, 0.09));
  padding-top: 12px;
}
.comments-form textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--hp-border, rgba(243, 237, 225, 0.09));
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--hp-raised, #201c15);
  color: var(--hp-text, #f3ede1);
}
.comments-form textarea:focus {
  border-color: var(--hp-accent);
  background: var(--hp-card, #1a1712);
  box-shadow: 0 0 0 3px rgba(224, 90, 36, 0.18);
  outline: none;
}

.comments-login-prompt {
  text-align: center;
  font-size: 0.85rem;
  color: var(--hp-text-muted, #8d8372);
  border-top: 1px solid var(--hp-border, rgba(243, 237, 225, 0.09));
  padding-top: 12px;
}
.comments-login-prompt a {
  color: var(--hp-accent);
  font-weight: 600;
}

/* ============================================================
   SKELETON � Gallery & Products (Sprint 1)
   transform/opacity only, shimmer, no layout shift
   ============================================================ */
.skeleton-card {
  border-radius: var(--hp-radius);
  overflow: hidden;
  border: 1px solid var(--hp-border);
  background: var(--hp-card);
  display: flex;
  flex-direction: column;
}
.skeleton-media {
  aspect-ratio: 1;
  background: linear-gradient(
    90deg,
    var(--hp-card) 25%,
    var(--hp-border) 50%,
    var(--hp-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--hp-card) 25%,
    var(--hp-border) 50%,
    var(--hp-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-line.short {
  width: 55%;
}
.skeleton-line.mid {
  width: 78%;
}

/* Staggered reveal � applied via JS with --stagger-delay */
.gallery-card.reveal-ready,
.product-card.reveal-ready {
  opacity: 0;
  transform: translateY(12px);
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-media,
  .skeleton-line {
    animation: none !important;
  }
  .gallery-card.reveal-ready,
  .product-card.reveal-ready {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   CINEMATIC EDITORIAL LAYER (v5)
   Warm paper / ink / champagne gold. Playfair Display headlines,
   Manrope body, DM Mono technical labels. All functional selectors
   and JS hooks above are preserved — this layer only re-skins.
   ============================================================ */

/* ---------- Type application ---------- */
body.home-page {
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
body.home-page h1,
body.home-page h2,
body.home-page .hero-title,
body.home-page .section-title,
body.home-page .cta-title,
body.home-page .collection-info h3,
body.home-page .feature-card h3,
body.home-page .how-step h3,
body.home-page .gallery-card-prompt,
body.home-page .review-card p,
body.home-page .faq-item summary,
body.home-page .login-card-header h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  text-wrap: balance;
}
body.home-page .nav-link,
body.home-page .nav-cta,
body.home-page .hero-btn-primary,
body.home-page .hero-btn-secondary,
body.home-page .section-badge,
body.home-page .cta-badge,
body.home-page .live-prompt-label,
body.home-page .stat-label,
body.home-page .gallery-filter-chip,
body.home-page .collection-tag,
body.home-page .faq-item summary .faq-icon,
body.home-page .marquee-group,
body.home-page .hero-mockup-title,
body.home-page .hero-mockup-status,
body.home-page .hero-mockup-tag,
body.home-page .studio-preview-brand,
body.home-page .studio-preview-status,
body.home-page .studio-preview-prompt-label,
body.home-page .footer-bottom {
  font-family: var(--font-mono);
}
body.home-page .nav-logo,
body.home-page .footer-brand .nav-logo {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
}
body.home-page .nav-logo-accent {
  font-style: normal;
}

/* ---------- Nav: editorial floating bar ---------- */
.nav {
  background: rgba(245, 242, 235, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(245, 242, 235, 0.94);
  border-bottom-color: var(--hp-border);
  box-shadow: 0 10px 30px rgba(15, 12, 9, 0.06);
}
.nav-link {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
}
.nav-link:hover {
  color: var(--hp-accent-hover);
  background: transparent;
}
.nav-cta {
  background: var(--hp-text);
  color: var(--hp-bg);
  border: 1px solid var(--hp-text);
  border-bottom-width: 1px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: none;
}
.nav-cta:hover {
  background: var(--hp-accent);
  border-color: var(--hp-accent);
  color: #0f0c09;
  box-shadow: var(--hp-shadow);
}
[data-theme="dark"] .nav {
  background: rgba(20, 17, 13, 0.82);
}
[data-theme="dark"] .nav.scrolled {
  background: rgba(20, 17, 13, 0.94);
}
[data-theme="dark"] .nav-cta:hover {
  color: #0f0c09;
}
[data-theme="dark"] .moon-icon {
  display: block;
}

/* ---------- Hero: giant editorial headline + framed mockup ---------- */
.hero {
  background:
    radial-gradient(
      circle at 78% 12%,
      rgba(193, 152, 86, 0.22),
      transparent 26%
    ),
    radial-gradient(
      circle at 8% 72%,
      rgba(255, 255, 255, 0.85),
      transparent 30%
    ),
    linear-gradient(115deg, #f5f2eb, #fffdf8 48%, #ead9c0);
  padding-top: 150px;
}
.hero-bg,
.hero-grid,
.hero-mark {
  opacity: 0.5;
}
.hero-content {
  position: relative;
  max-width: 1320px;
}
.hero-left {
  position: relative;
  z-index: 2;
}
.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hp-accent-hover);
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
}
.hero-badge-dot {
  background: var(--hp-accent);
}
.hero-title {
  font-weight: 500;
  font-size: clamp(3.2rem, 7.2vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 26px 0 26px -4px;
}
.hero-title-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hp-accent-hover);
  margin-bottom: 18px;
}
.hero-title-line {
  display: block;
}
.hero-title-gradient {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--hp-accent-hover);
  background: none;
  -webkit-text-fill-color: currentcolor;
}
.hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 24rem;
}
.hero-cta {
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
/* Primary CTA dominates: larger, gold glow halo, sliding arrow */
.hero-btn-primary {
  background: var(--hp-text);
  color: var(--hp-bg);
  border: 1px solid var(--hp-text);
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 19px 34px;
  box-shadow: 0 10px 34px rgba(15, 12, 9, 0.28);
  position: relative;
}
.hero-btn-primary:hover {
  background: var(--hp-accent);
  border-color: var(--hp-accent);
  color: #0f0c09;
  box-shadow: 0 14px 40px rgba(193, 152, 86, 0.55);
  transform: translateY(-2px);
}
.hero-btn-primary:hover svg {
  transform: translate(3px, 3px);
}
.hero-btn-primary svg {
  transition: transform 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
/* Secondaries step back: quieter, smaller */
.hero-btn-secondary {
  border: 1px solid var(--hp-border);
  border-radius: 2px;
  color: var(--hp-text-secondary, var(--hp-text));
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 14px 20px;
  background: transparent;
}
.hero-btn-secondary:hover {
  border-color: var(--hp-text);
  background: transparent;
  color: var(--hp-text);
}
.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-mockup-card {
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  border-radius: 3px;
  box-shadow: var(--hp-shadow-lg);
}
.hero-mockup-card::before,
.hero-mockup-card::after {
  border-color: var(--hp-accent);
}
.hero-mockup-status {
  color: var(--hp-accent-hover);
  border: 1px solid var(--hp-accent);
  border-radius: 999px;
  padding: 3px 10px;
}
.hero-mockup-price {
  color: var(--hp-accent-hover);
}
.hero-float-card {
  background: var(--hp-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hp-glass-border);
  border-radius: 2px;
  box-shadow: var(--hp-shadow);
}
.live-prompt {
  border: 1px solid var(--hp-border);
  border-radius: 2px;
  background: var(--hp-card);
}
.hero-trust-avatars span,
.hero-trust-avatars img {
  border: 2px solid var(--hp-bg);
}

/* ---------- Section headers: serif + mono eyebrow ---------- */
.section-badge {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  padding: 0;
}
.section-meta {
  justify-content: center;
}
.section-meta-divider {
  background: var(--hp-accent);
  width: 40px;
}
.section-title {
  font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.section-title-em {
  font-weight: 500;
}
.text-gradient {
  background: none;
  -webkit-text-fill-color: currentcolor;
  color: var(--hp-accent-hover);
  font-style: italic;
  font-weight: 500;
}
.section-subtitle {
  max-width: 34rem;
}

/* ---------- Features: hairline editorial grid ---------- */
.features-grid {
  border: 1px solid var(--hp-border);
  border-radius: 3px;
  overflow: hidden;
}
.feature-card {
  border: none;
  border-radius: 0;
  background: var(--hp-card);
}
.feature-card:hover {
  background: var(--hp-card-hover);
  transform: translateY(-6px);
}
.feature-card:hover .feature-icon {
  background: var(--hp-accent);
  border-color: var(--hp-accent);
  color: #0f0c09;
  transform: rotate(8deg) scale(1.06);
}
.feature-card h3,
.how-step h3 {
  color: var(--hp-text);
}
.feature-icon {
  border: 1px solid var(--hp-border-strong);
  border-radius: 2px;
  color: var(--hp-accent-hover);
}

/* ---------- How: numbered editorial steps ---------- */
.how-step-number {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--hp-accent);
}
.how-step {
  border-top: 1px solid var(--hp-border-strong);
}
.how-step:hover {
  border-top-color: var(--hp-accent);
}

/* ---------- Gallery: curated collection cards ---------- */
.gallery-filters {
  gap: 26px;
}
.gallery-filter-chip {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 6px 2px;
  position: relative;
}
.gallery-filter-chip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--hp-accent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.gallery-filter-chip:hover {
  color: var(--hp-accent-hover);
}
.gallery-filter-chip.active {
  background: transparent;
  color: var(--hp-accent-hover);
}
.gallery-filter-chip.active::after {
  transform: scaleX(1);
}
.gallery-card {
  border: 1px solid var(--hp-border);
  border-radius: 3px;
  background: var(--hp-card);
  overflow: hidden;
}
.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hp-shadow-lg);
  border-color: var(--hp-border-strong);
}
.gallery-card-img {
  transition:
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.1s;
}
.gallery-card:hover .gallery-card-img {
  transform: scale(1.07);
  filter: brightness(0.94);
}
.gallery-card-prompt {
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.45;
}
.gallery-card-author {
  color: var(--hp-accent-hover);
}
.gallery-card-use {
  background: var(--hp-text);
  color: var(--hp-bg);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gallery-card-use:hover {
  background: var(--hp-accent);
  color: #0f0c09;
}
.gallery-card-like.liked {
  color: var(--hp-accent-hover);
}
.gallery-empty {
  border: 1px dashed var(--hp-border-strong);
  border-radius: 3px;
  background: transparent;
}

/* ---------- Collections: dark archive chapter ---------- */
.collections {
  background: #1d1b18;
  color: #f5f2eb;
  border-top: 1px solid rgba(245, 242, 235, 0.1);
  border-bottom: 1px solid rgba(245, 242, 235, 0.1);
}
.collections .section-title,
.collections .section-title-em {
  color: #f5f2eb;
}
.collections .section-subtitle {
  color: rgba(245, 242, 235, 0.6);
}
.collections .section-badge {
  color: #d5b178;
}
.collections .section-meta-divider {
  background: #c19856;
}
.collections-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 380px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: none;
}
.collections-grid::-webkit-scrollbar {
  display: none;
}
.collection-card {
  scroll-snap-align: start;
  border: 1px solid rgba(245, 242, 235, 0.12);
  border-radius: 3px;
  overflow: hidden;
  background: #26221c;
}
.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  border-color: rgba(193, 152, 86, 0.5);
}
.collection-art {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  transition:
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s;
}
.collection-card:hover .collection-art {
  transform: scale(1.08);
  filter: brightness(0.72);
}
.collection-art-dragon {
  background-image: url("../assets/img/theme-dragon.jpg");
}
.collection-art-anime {
  background-image: url("../assets/img/theme-anime.jpg");
}
.collection-art-vintage {
  background-image: url("../assets/img/theme-vintage.jpg");
}
.collection-art-minimal {
  background-image: url("../assets/img/theme-minimal.jpg");
}
.collection-overlay {
  background: linear-gradient(to top, rgba(10, 8, 6, 0.82), transparent 60%);
}
.collection-info h3 {
  color: #f5f2eb;
}
.collection-tag {
  color: #fcfaf8;
}
.collection-cta {
  color: #d5b178;
}

/* ---------- Studio preview: warm instrument panel ---------- */
.studio-preview-screen {
  background: var(--hp-card);
  border: 1px solid var(--hp-border-strong);
  border-radius: 4px;
  box-shadow: var(--hp-shadow-lg);
}
.studio-preview-status {
  color: var(--hp-accent-hover);
}
.studio-preview-style.active {
  background: var(--hp-text);
  color: var(--hp-bg);
}

/* ---------- Reviews: editorial pull-quote track ---------- */
.review-card {
  border: 1px solid var(--hp-border);
  border-radius: 2px;
  background: var(--hp-card);
}
.review-card p {
  font-size: 1.25rem;
  line-height: 1.5;
}
.review-stars {
  color: var(--hp-accent);
}

/* ---------- FAQ: hairline accordion ---------- */
.faq-item {
  border: 1px solid var(--hp-border);
  border-radius: 2px;
  background: var(--hp-card);
}
.faq-item[open],
.faq-item:hover {
  border-color: var(--hp-accent);
  background: var(--hp-card-hover);
}
.faq-item summary {
  font-size: 1.35rem;
  font-weight: 500;
}
.faq-icon::after {
  color: var(--hp-accent);
}

/* ---------- CTA: monumental serif closer ---------- */
.cta-section {
  background: linear-gradient(
    180deg,
    var(--hp-bg) 0%,
    var(--hp-bg-subtle) 100%
  );
  border-top: 1px solid var(--hp-border);
}
.cta-title {
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
/* Final closer CTA: monumental primary */
.cta-buttons .hero-btn-primary {
  font-size: 0.82rem;
  padding: 21px 44px;
}
.cta-buttons {
  margin-top: 8px;
}
.cta-badge {
  border: 1px solid var(--hp-accent);
  border-radius: 999px;
  padding: 8px 18px;
}

/* ---------- Footer: quiet editorial colophon ---------- */
.footer {
  background: var(--hp-bg);
  border-top: 1px solid var(--hp-border-strong);
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hp-text-tertiary);
}
.footer-grid a:hover {
  color: var(--hp-accent-hover);
}
.footer-desc strong {
  color: var(--hp-text);
}

/* ---------- Trust / stats / marquee ---------- */
.trust-badge-item {
  border: 1px solid var(--hp-border);
  border-radius: 2px;
  background: var(--hp-card);
}
.stat-value {
  color: var(--hp-text);
}
.stat-value .accent,
.stat-item .accent {
  color: var(--hp-accent-hover);
}
.marquee-strip {
  border-top: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
  background: var(--hp-card);
}
.marquee-group .marquee-star {
  color: var(--hp-accent);
}

/* ---------- Comments modal ---------- */
.comments-modal {
  background: var(--hp-card);
  border: 1px solid var(--hp-border-strong);
  border-radius: 4px;
}
.comments-modal-header h3 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}
.comments-form textarea {
  border: 1px solid var(--hp-border-strong);
  border-radius: 2px;
  background: var(--hp-bg);
  color: var(--hp-text);
}
.comments-form textarea:focus {
  border-color: var(--hp-accent);
}

/* ---------- Scroll progress: gold hairline ---------- */
.scroll-progress {
  background: linear-gradient(
    to bottom,
    var(--hp-accent),
    var(--hp-accent-hover)
  );
  width: 2px;
}

/* ---------- Responsive: collapse asymmetry under 768px ---------- */
@media (max-width: 1023px) {
  .hero-title {
    font-size: clamp(2.9rem, 9vw, 4.6rem);
    margin-left: 0;
  }
}
@media (max-width: 767px) {
  .hero {
    padding-top: 120px;
  }
  .hero-title {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
  }
  .hero-cta .hero-btn-primary,
  .hero-cta .hero-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .collections-grid {
    grid-auto-columns: 78vw;
  }
  .collection-art {
    min-height: 320px;
  }
  .cta-title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }
  .section-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
}

/* ---------- Reduced motion: still, instantly ---------- */
@media (prefers-reduced-motion: reduce) {
  .gallery-card-img,
  .collection-art,
  .gallery-card,
  .collection-card,
  .feature-card,
  .hero-btn-primary,
  .hero-btn-secondary,
  .nav-cta {
    transition: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
  .hero-float-1,
  .hero-float-2,
  .hero-float-3 {
    animation: none !important;
  }
}

/* ---------- Hero visual: editorial atelier frame ---------- */
.hero-mockup-result {
  background: #ded2c0 url("../assets/img/hero.jpg") center 20% / cover no-repeat;
  aspect-ratio: 0.82;
}
/* Empty artwork slot (JS fills it with REAL community designs when present) */
.hero-mockup-result img[src=""],
.hero-mockup-result img:not([src]) {
  display: none;
}
.hero-mockup-result img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-mockup-fallback {
  display: none;
}
.hero-float-1 {
  top: 66px;
  right: 14px;
}
.hero-float-2 {
  bottom: 24%;
  left: -14px;
}
.hero-float-3 {
  bottom: 78px;
  right: 14px;
}
.hero-mockup-price,
.hero-float-count,
.hero-float-price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--hp-accent-hover);
}
.hero-mockup-tag {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* ===== TYPOGRAPHY QA OVERRIDES (appended last — wins cascade) =====
   Hero display = BVP (brand identity sans); VN floor sizes; CTA readable. */
.hero-title,
.hero-title-line,
.hero-title-gradient {
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}

.hero .hero-title-sub,
.hero .hero-badge {
  font-size: 0.75rem; /* 12px floor for overline labels */
}

.hero-btn-primary,
.hero-btn-secondary {
  font-size: 1rem; /* CTA ≥ 16px, was 0.78rem */
  line-height: 1.3;
}

/* ============================================================
   REVIEWS — editorial print. Pull-quote serif, mono indices,
   hairline rules, one gold accent. No pills, no gradients.
   ============================================================ */
.reviews-summary[hidden] {
  display: none;
}

/* --- Masthead: điểm số bên trái, phân bố bên phải, đường kẻ mảnh --- */
.reviews-summary {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  gap: 0 44px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 56px;
  padding: 0 0 34px;
  border-bottom: 1px solid var(--hp-border-strong);
}
.reviews-summary-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 150px;
}
.reviews-summary-avg {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 4.2rem;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--hp-text);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.reviews-summary-stars {
  font-size: 0.85rem;
  letter-spacing: 4px;
  line-height: 1;
  color: var(--hp-accent);
}
.reviews-summary-stars .rs-full { color: var(--hp-accent); }
.reviews-summary-stars .rs-off { color: var(--hp-border-strong); }
.reviews-summary-count {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-text-muted);
}
.reviews-summary-divider {
  width: 1px;
  height: 76px;
  align-self: center;
  background: var(--hp-border);
}
.reviews-summary-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}
.rs-bar-row {
  display: grid;
  grid-template-columns: 30px 1fr 26px;
  align-items: center;
  gap: 14px;
  font-size: 0.7rem;
  color: var(--hp-text-muted);
}
.rs-bar-star {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
.rs-bar-track {
  height: 2px;
  background: var(--hp-border);
  overflow: hidden;
}
.rs-bar-fill {
  height: 100%;
  background: var(--hp-accent);
  transition: width 1s var(--ease-out-expo);
}
.rs-bar-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --- Cards: figure/blockquote, đánh số như mục lục tạp chí --- */
.reviews-track { gap: 1px; }
.review-card {
  position: relative;
  padding: 30px 28px 26px;
  margin: 0;
  background: var(--hp-card);
  border: 0;
  border-right: 1px solid var(--hp-border);
  border-top: 1px solid var(--hp-border);
  border-radius: 0;
  box-shadow: none;
  transition: background var(--dur-ui) var(--ease-out-expo);
}
.review-card:hover {
  background: var(--hp-card-hover);
  border-color: var(--hp-border);
  transform: none;
  box-shadow: none;
}
.review-card .review-card-stars {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: var(--hp-accent);
  margin: 0 0 16px;
}
.review-card .review-card-stars-off { color: var(--hp-border-strong); }
.review-card blockquote,
.review-card p {
  margin: 0 0 22px;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: normal;
  font-weight: 500;
  font-size: 1.22rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--hp-text);
}
.review-card .review-reply {
  margin: 0 0 22px;
  padding: 2px 0 2px 18px;
  background: none;
  border: 0;
  border-left: 2px solid var(--hp-accent);
  border-radius: 0;
}
.review-card .review-reply-head {
  display: block;
  margin-bottom: 5px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-accent-text);
}
.review-card .review-reply-mark { display: none; }
.review-card .review-reply p {
  margin: 0;
  font-family: var(--font-tabular);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--hp-text-secondary);
}
.review-card .review-author {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: auto;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--hp-border);
}
.review-index {
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--hp-text-tertiary);
}
.review-avatar {
  width: 30px;
  height: 30px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, var(--font-tabular));
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--hp-accent-text);
  background: var(--hp-accent-soft);
  border: 1px solid var(--hp-border);
  flex-shrink: 0;
  align-self: center;
}
.review-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.review-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-role {
  font-size: 0.7rem;
  color: var(--hp-text-muted);
}
.review-chips,
.review-chip { display: none !important; }
.reviews-more-wrap {
  text-align: center;
  margin-top: 40px;
}
.reviews-more-btn {
  padding: 0 4px 6px;
  font-family: var(--font-mono, var(--font-tabular));
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-text-secondary);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hp-accent);
  border-radius: 0;
  cursor: pointer;
  transition: color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
.reviews-more-btn:hover {
  transform: none;
  color: var(--hp-accent-text);
  border-color: var(--hp-accent-text);
  box-shadow: none;
}

.review-role { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--hp-accent-text);
  font-weight: 700;
}
.review-verified::before { content: "✓"; font-size: 0.72rem; }
.review-product { color: var(--hp-text-secondary); }
.review-product::before { content: "·"; margin-right: 7px; color: var(--hp-border-strong); }
.reviews-loading,
.reviews-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 9px;
  min-height: 200px;
  align-content: center;
  padding: 28px;
  border-top: 1px solid var(--hp-border);
  color: var(--hp-text-muted);
  text-align: center;
}
.reviews-loading-mark,
.reviews-empty-mark { color: var(--hp-accent); font-size: 1.2rem; }
.reviews-empty h3 { margin: 0; color: var(--hp-text); font-size: 1.08rem; font-weight: 650; }
.reviews-empty p { max-width: 48ch; margin: 0; font-size: 0.82rem; line-height: 1.6; }
.reviews-retry-btn {
  margin-top: 8px;
  padding: 8px 13px;
  border: 1px solid var(--hp-border-strong);
  background: transparent;
  color: var(--hp-text);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}
.reviews-retry-btn:hover:not(:disabled) { border-color: var(--hp-accent); color: var(--hp-accent-text); }
.reviews-retry-btn:focus-visible { outline: 2px solid var(--hp-accent); outline-offset: 3px; }
.reviews-retry-btn:disabled { opacity: 0.65; cursor: progress; }

@media (max-width: 640px) {
  .reviews-summary { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; padding-bottom: 24px; }
  .reviews-summary-score { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 14px; min-width: 0; }
  .reviews-summary-avg { grid-row: span 2; font-size: 3.5rem; }
  .reviews-summary-divider { display: none; }
  .reviews-summary-bars { width: 100%; max-width: none; }
  .review-card { padding: 22px 18px; }
  .review-card blockquote { font-size: 1.08rem; }
}
