/* =============================================================
   XOX Studio · Tattoos by Dayan Glez
   Multi-page additions (loaded AFTER styles.css)
   ============================================================= */

/* ---------- Active nav state in drawer ---------- */
.drawer ul li a.active {
  color: var(--red-2);
}
.drawer ul li a.active::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 10px;
  background: var(--red);
  border-radius: 50%;
  vertical-align: middle;
}

/* ---------- Home "section cards" grid ---------- */
.home-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 36px;
}
@media (min-width: 760px) {
  .home-cards {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

.home-card {
  position: relative;
  display: block;
  padding: 30px 26px 28px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--surface) 0%, var(--dark) 100%);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    transform .55s var(--ease),
    border-color .35s ease,
    background .55s var(--ease);
}
.home-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(450px 200px at 100% 0%, rgba(193,18,31,0.18), transparent 70%);
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
}
.home-card:hover,
.home-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(193,18,31,0.55);
}
.home-card:hover::before,
.home-card:focus-visible::before {
  opacity: 1;
}

.home-card-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}
.home-card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-transform: none;
  color: var(--white);
  margin-bottom: 12px;
}
.home-card p {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.home-card .home-card-link {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--red-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.home-card .home-card-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.home-card:hover .home-card-link::after,
.home-card:focus-visible .home-card-link::after {
  transform: scaleX(1);
}

/* ---------- Animated contact icons (used at the bottom of every page) ---------- */
.icon-contacts {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-top: 30px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 4px;
}
@media (min-width: 760px) {
  .icon-contacts {
    gap: 18px;
    max-width: 480px;
  }
}

.icon-contact {
  --size: 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 4px;
  flex: 1 1 0;
  min-width: 0;
}
@media (min-width: 760px) {
  .icon-contact { --size: 56px; }
}
.icon-contact .icon-bubble {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition:
    transform .5s var(--ease),
    background .35s ease,
    border-color .35s ease,
    box-shadow .5s var(--ease);
  position: relative;
}
.icon-contact .icon-bubble::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(193,18,31,0.35);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.icon-contact:hover .icon-bubble,
.icon-contact:focus-visible .icon-bubble {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(160deg, #1a1a1a 0%, #0c0c0c 100%);
  border-color: rgba(193,18,31,0.65);
  box-shadow: 0 16px 30px -16px rgba(193,18,31,0.55);
}
.icon-contact:hover .icon-bubble::after,
.icon-contact:focus-visible .icon-bubble::after {
  opacity: 1;
  transform: scale(1.05);
  animation: icon-pulse 1.6s var(--ease) infinite;
}
.icon-contact .icon-bubble svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .35s ease, transform .5s var(--ease);
}
@media (min-width: 760px) {
  .icon-contact .icon-bubble svg { width: 26px; height: 26px; }
}
.icon-contact:hover .icon-bubble svg,
.icon-contact:focus-visible .icon-bubble svg {
  stroke: var(--red-2);
  transform: rotate(-6deg) scale(1.06);
}
.icon-contact .icon-label {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 8.5px;
  color: var(--muted-2);
  transition: color .35s ease;
  white-space: nowrap;
}
@media (min-width: 760px) {
  .icon-contact .icon-label { font-size: 10px; letter-spacing: 0.16em; }
}
.icon-contact:hover .icon-label,
.icon-contact:focus-visible .icon-label {
  color: var(--white);
}

@keyframes icon-pulse {
  0%   { opacity: 0.9; transform: scale(1.05); }
  70%  { opacity: 0;   transform: scale(1.45); }
  100% { opacity: 0;   transform: scale(1.45); }
}

/* WhatsApp icon — slight wiggle on hover */
.icon-contact[data-icon="whatsapp"]:hover .icon-bubble svg,
.icon-contact[data-icon="whatsapp"]:focus-visible .icon-bubble svg {
  animation: wiggle 0.7s var(--ease);
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-6deg) scale(1.06); }
  25%      { transform: rotate(6deg)  scale(1.06); }
  50%      { transform: rotate(-4deg) scale(1.06); }
  75%      { transform: rotate(4deg)  scale(1.06); }
}

/* Email icon — gentle bob on hover */
.icon-contact[data-icon="email"]:hover .icon-bubble svg,
.icon-contact[data-icon="email"]:focus-visible .icon-bubble svg {
  animation: bob 1s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0)    rotate(-6deg) scale(1.06); }
  50%      { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
}

/* Instagram icon — soft spin */
.icon-contact[data-icon="instagram"]:hover .icon-bubble svg,
.icon-contact[data-icon="instagram"]:focus-visible .icon-bubble svg {
  animation: soft-spin 1.5s linear infinite;
}
@keyframes soft-spin {
  from { transform: rotate(-6deg) scale(1.06); }
  to   { transform: rotate(354deg) scale(1.06); }
}

/* Portfolio icon — subtle zoom-in/out */
.icon-contact[data-icon="portfolio"]:hover .icon-bubble svg,
.icon-contact[data-icon="portfolio"]:focus-visible .icon-bubble svg {
  animation: portfolio-zoom 1.2s var(--ease) infinite;
}
@keyframes portfolio-zoom {
  0%, 100% { transform: rotate(-6deg) scale(1.06); }
  50%      { transform: rotate(-6deg) scale(1.18); }
}

/* Flashbook icon — flicker */
.icon-contact[data-icon="flashbook"]:hover .icon-bubble svg,
.icon-contact[data-icon="flashbook"]:focus-visible .icon-bubble svg {
  animation: flicker 1.2s var(--ease) infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1;    transform: rotate(-6deg) scale(1.06); }
  45%      { opacity: 0.55; transform: rotate(-3deg) scale(1.04); }
  55%      { opacity: 1;    transform: rotate(-6deg) scale(1.08); }
}

/* =============================================================
   FOOTER — "Minimal with presence" (Option A)
   ============================================================= */

/* Hide the original simple footer elements when we use the new structure */
footer.site-footer {
  position: relative;
  padding: 0;
  margin-top: 60px;
  background: transparent;
  border: none;
}

/* Decorative pre-footer band with the contact icons */
.pre-footer {
  padding: 50px 22px 30px;
  border-top: 1px solid var(--line);
  position: relative;
  text-align: center;
}
.pre-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 2px;
  background: var(--red);
}
.pre-footer .pre-footer-label {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 26px;
}

/* Main footer block — V10: more red presence */
.footer-block {
  position: relative;
  padding: 50px 22px 36px;
  border-top: 1px solid rgba(193, 18, 31, 0.4);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(193, 18, 31, 0.18), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(193, 18, 31, 0.10) 100%);
}
.footer-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-2), transparent);
  box-shadow: 0 0 14px rgba(255, 16, 36, 0.5);
  animation: footerBarPulse 3.5s ease-in-out infinite;
  z-index: 2;
}
@keyframes footerBarPulse {
  0%, 100% { width: 100px; opacity: 0.7; }
  50%      { width: 200px; opacity: 1;   }
}

/* Big background XOX wordmark behind the footer — exact brand glyphs */
.footer-block .footer-bg-word {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: min(720px, 130%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.10;
  animation: fbwBreath 6s ease-in-out infinite;
}
.footer-block .footer-bg-word svg {
  width: 100%;
  height: auto;
  display: block;
}
.footer-bg-word .fbw-x { fill: var(--red); }
.footer-bg-word .fbw-o circle { stroke: var(--red); }
@keyframes fbwBreath {
  0%, 100% { opacity: 0.08; transform: translateX(-50%) scale(1);    }
  50%      { opacity: 0.18; transform: translateX(-50%) scale(1.04); }
}

.footer-block-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: none;
}
.footer-tagline em {
  font-style: normal;
  color: var(--red);
  font-weight: 600;
}

.footer-text {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 28px;
}

/* Thin red rule separator */
.footer-rule {
  width: 50px;
  height: 1px;
  background: var(--red);
  margin: 0 auto 24px;
  border: none;
}

/* Page links row */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 28px;
}
.footer-links a {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted-2);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color .25s ease;
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--red-2);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}
.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  transform: scaleX(1);
}

/* Bottom row: small XOX logo + copyright + credit */
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(193, 18, 31, 0.3);
  position: relative;
}
.footer-meta::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 16, 36, 0.7);
  animation: footerMetaBar 3s ease-in-out infinite;
}
@keyframes footerMetaBar {
  0%, 100% { width: 60px;  opacity: 0.7; }
  50%      { width: 140px; opacity: 1;   }
}
@media (min-width: 700px) {
  .footer-meta {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-meta .footer-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 4px;
}
.footer-meta .footer-mark .fm-xox {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-style: normal;
  color: var(--white);
  line-height: 0.85;
  position: relative;
  animation: fmXoxBreath 4s ease-in-out infinite;
}
@keyframes fmXoxBreath {
  0%, 100% { text-shadow: none; }
  50%      { text-shadow: 0 0 22px rgba(193, 18, 31, 0.55); }
}
.footer-meta .footer-mark .fm-studio {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--muted);
  padding-left: 1px;
}
@media (min-width: 700px) {
  .footer-meta .footer-mark { align-items: flex-start; }
}
.footer-meta .copy {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.footer-meta .credit {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Page-only spacing tweaks for shorter pages ---------- */
.page-faq .section,
.page-aftercare .section,
.page-about .section {
  padding-top: 28px;
}

/* =============================================================
   MOTION LAYER · V7
   Constant, mobile-friendly animations — no hover required.
   Driven by:
     - CSS @keyframes (always-on subtle motion)
     - .reveal class toggled by motion.js on scroll
   ============================================================= */

/* Always-on motion: dots breathe everywhere a red dot appears */
.float-cta span::before,
.label::before,
.hero-kicker::after {
  animation-duration: 2.4s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

/* Float CTA — gentle slide-in on page load, then lift breathing */
.float-cta {
  animation: floatRise 0.9s var(--ease) 0.4s backwards, floatBreath 5s ease-in-out 1.3s infinite;
}
@keyframes floatRise {
  from { transform: translateX(-50%) translateY(120%); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
@keyframes floatBreath {
  0%, 100% { box-shadow: 0 -1px 0 0 rgba(193, 18, 31, 0.45); }
  50%      { box-shadow: 0 -1px 0 0 rgba(255, 16, 36, 0.85), 0 -8px 24px -8px rgba(193, 18, 31, 0.45); }
}

/* Hero red glow is now handled by heroGlowPulse in styles.css */

/* =============================================================
   SPOTLIGHT/REVEAL — removed for reliability.
   ============================================================= */

/* All cards breathe constantly with staggered delays */
.home-card,
.category-card,
.style-card,
.aftercare-card {
  animation: cardBreath 6s ease-in-out infinite;
  will-change: transform;
}
.home-card:nth-child(2),
.category-card:nth-child(2),
.style-card:nth-child(2),
.aftercare-card:nth-child(2) { animation-delay: 1.2s; }
.home-card:nth-child(3),
.category-card:nth-child(3),
.style-card:nth-child(3),
.aftercare-card:nth-child(3) { animation-delay: 2.4s; }
.home-card:nth-child(4),
.category-card:nth-child(4),
.style-card:nth-child(4),
.aftercare-card:nth-child(4) { animation-delay: 3.6s; }

@keyframes cardBreath {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 0 16px 32px -16px rgba(193, 18, 31, 0.25), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  }
}

/* Icon bubbles auto-pulse on mobile (no hover) — staggered */
.icon-contact .icon-bubble {
  animation: iconIdle 4s ease-in-out infinite;
}
.icon-contact[data-icon="whatsapp"]  .icon-bubble { animation-delay: 0.0s; }
.icon-contact[data-icon="instagram"] .icon-bubble { animation-delay: 0.6s; }
.icon-contact[data-icon="email"]     .icon-bubble { animation-delay: 1.2s; }
.icon-contact[data-icon="portfolio"] .icon-bubble { animation-delay: 1.8s; }
.icon-contact[data-icon="flashbook"] .icon-bubble { animation-delay: 2.4s; }
@keyframes iconIdle {
  0%, 100% { transform: translateY(0)    scale(1);    border-color: var(--line-2); }
  50%      { transform: translateY(-3px) scale(1.02); border-color: rgba(193, 18, 31, 0.45); box-shadow: 0 10px 22px -14px rgba(193, 18, 31, 0.45); }
}

/* Icons SVG idle wobble (mobile) */
.icon-contact .icon-bubble svg {
  animation: svgIdle 5s ease-in-out infinite;
}
.icon-contact[data-icon="whatsapp"]  .icon-bubble svg { animation-delay: 0.0s; }
.icon-contact[data-icon="instagram"] .icon-bubble svg { animation-delay: 0.5s; }
.icon-contact[data-icon="email"]     .icon-bubble svg { animation-delay: 1.0s; }
.icon-contact[data-icon="portfolio"] .icon-bubble svg { animation-delay: 1.5s; }
.icon-contact[data-icon="flashbook"] .icon-bubble svg { animation-delay: 2.0s; }
@keyframes svgIdle {
  0%, 100% { transform: rotate(0deg);  stroke: var(--white); }
  50%      { transform: rotate(-4deg); stroke: var(--red); }
}

/* Marquee — slightly faster + tighter rhythm */
.marquee-track { animation-duration: 24s; }

/* Headline em pulse */
.headline em,
.feature-title em,
.footer-tagline em {
  animation: emPulse 4s ease-in-out infinite;
}
@keyframes emPulse {
  0%, 100% { color: var(--red); text-shadow: none; }
  50%      { color: var(--red-2); text-shadow: 0 0 14px rgba(255, 16, 36, 0.35); }
}

/* Footer rule animated width */
.footer-rule {
  animation: rulePulse 3.4s ease-in-out infinite;
}
@keyframes rulePulse {
  0%, 100% { width: 50px;  opacity: 1; }
  50%      { width: 110px; opacity: 0.7; }
}

/* Pre-footer red bar pulses */
.pre-footer::before {
  animation: barPulse 3s ease-in-out infinite;
}
@keyframes barPulse {
  0%, 100% { width: 60px;  opacity: 1; }
  50%      { width: 120px; opacity: 0.7; }
}

/* Style cards: subtle red underline always visible at 30%, sweeps on reveal */
.style-card::after {
  transform: scaleX(0.3);
  transition: transform 1s var(--ease);
}
.style-card.in::after {
  animation: styleSweep 6s ease-in-out infinite;
}
@keyframes styleSweep {
  0%, 100% { transform: scaleX(0.3); }
  50%      { transform: scaleX(1);   }
}

/* Numbered list items get a subtle red bar accent */
.cat-num,
.home-card-num,
.style-num,
.prep-num,
.step-num,
.why-mark,
.aftercare-num {
  position: relative;
  display: inline-block;
}

/* Reduced motion: kill all our extras */
@media (prefers-reduced-motion: reduce) {
  .home-card.in,
  .icon-contact .icon-bubble,
  .icon-contact .icon-bubble svg,
  .headline em, .feature-title em, .footer-tagline em,
  .footer-rule, .pre-footer::before,
  .style-card.in::after,
  .float-cta,
  #hero::before,
  .logo-mark circle:nth-child(2),
  .hero-kicker::after,
  .footer-block .footer-bg-word {
    animation: none !important;
  }
}
/* =============================================================
   MOTION LAYER · V8
   - Always-on dots/glows breathing
   - Spotlight scroll: only the section in viewport is bright;
     everything else fades to 0.15 + blur, in BOTH scroll directions
   - Cards breathing (staggered)
   - Hero glow alive
   ============================================================= */

/* Always-on motion: dots breathe everywhere a red dot appears */
.float-cta span::before,
.label::before,
.hero-kicker::after {
  animation-duration: 2.4s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

/* Float CTA — rise on load + breathing glow */
.float-cta {
  animation: floatRise 0.9s var(--ease) 0.4s backwards, floatBreath 5s ease-in-out 1.3s infinite;
}
@keyframes floatRise {
  from { transform: translateX(-50%) translateY(120%); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
@keyframes floatBreath {
  0%, 100% { box-shadow: 0 -1px 0 0 rgba(193, 18, 31, 0.45); }
  50%      { box-shadow: 0 -1px 0 0 rgba(255, 16, 36, 0.85), 0 -8px 24px -8px rgba(193, 18, 31, 0.45); }
}

/* =====================================================================
   SPOTLIGHT SCROLL
   The .spot class is applied to all major sections and stagger containers.
   By default everything is dimmed to 0.15 + blur 5px.
   motion.js adds .spot-in when the element is in viewport center.
   This works in BOTH scroll directions (re-toggleable).
   Skipped on pages with dynamic content (flash-style, flash-piece,
   gallery-piece) to avoid invisible sections.
   ===================================================================== */
.spot {
  opacity: 0.15;
  filter: blur(5px) saturate(0.7);
  transform: scale(0.985);
  transition:
    opacity 0.6s var(--ease),
    filter 0.6s var(--ease),
    transform 0.6s var(--ease);
  will-change: opacity, filter, transform;
}
.spot.spot-in {
  opacity: 1;
  filter: blur(0) saturate(1);
  transform: scale(1);
}

/* Initial-load fade-up that fires once (independent of spotlight) */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.fade-up.fade-in { opacity: 1; transform: translateY(0); }

/* Stagger inside containers (used together with spot — fades dependent children) */
.stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}
.stagger.spot-in > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger.spot-in > *:nth-child(2) { transition-delay: 0.14s; opacity: 1; transform: translateY(0); }
.stagger.spot-in > *:nth-child(3) { transition-delay: 0.23s; opacity: 1; transform: translateY(0); }
.stagger.spot-in > *:nth-child(4) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.stagger.spot-in > *:nth-child(5) { transition-delay: 0.41s; opacity: 1; transform: translateY(0); }
.stagger.spot-in > *:nth-child(6) { transition-delay: 0.50s; opacity: 1; transform: translateY(0); }
.stagger.spot-in > *:nth-child(n+7) { transition-delay: 0.59s; opacity: 1; transform: translateY(0); }

/* The hero is never dimmed (it's the entry) — but we still allow .spot-in */
#hero.spot {
  opacity: 1;
  filter: none;
  transform: none;
}

/* =====================================================================
   CARDS BREATHING — V10 enhanced
   Stronger amplitude, visible glow, subtle border pulse.
   ===================================================================== */
.home-card,
.category-card,
.style-card,
.aftercare-card {
  animation: cardBreath 4.2s ease-in-out infinite, cardBorderPulse 4.2s ease-in-out infinite;
  will-change: transform, box-shadow, border-color;
}
.home-card:nth-child(1),
.category-card:nth-child(1),
.style-card:nth-child(1),
.aftercare-card:nth-child(1) { animation-delay: 0s; }

.home-card:nth-child(2),
.category-card:nth-child(2),
.style-card:nth-child(2),
.aftercare-card:nth-child(2) { animation-delay: 0.6s; }

.home-card:nth-child(3),
.category-card:nth-child(3),
.style-card:nth-child(3),
.aftercare-card:nth-child(3) { animation-delay: 1.2s; }

.home-card:nth-child(4),
.category-card:nth-child(4),
.style-card:nth-child(4),
.aftercare-card:nth-child(4) { animation-delay: 1.8s; }

.home-card:nth-child(5),
.category-card:nth-child(5),
.style-card:nth-child(5),
.aftercare-card:nth-child(5) { animation-delay: 2.4s; }

@keyframes cardBreath {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: translateY(-8px) scale(1.018);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(193, 18, 31, 0.18);
  }
}

@keyframes cardBorderPulse {
  0%, 100% { border-color: var(--line-2); }
  50%      { border-color: rgba(193, 18, 31, 0.5); }
}

/* Subtle glow breath under cards (stronger red) */
.home-card,
.category-card,
.style-card,
.aftercare-card {
  position: relative;
}
.home-card::after,
.category-card::after,
.aftercare-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 200px at 50% 100%, rgba(193, 18, 31, 0.22), transparent 70%);
  opacity: 0;
  animation: cardGlow 4.2s ease-in-out infinite;
  z-index: 0;
}
@keyframes cardGlow {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* Icon bubbles auto-pulse on mobile (no hover) — staggered (kept from v7) */
.icon-contact .icon-bubble {
  animation: iconIdle 4s ease-in-out infinite;
}
.icon-contact[data-icon="whatsapp"]  .icon-bubble { animation-delay: 0.0s; }
.icon-contact[data-icon="instagram"] .icon-bubble { animation-delay: 0.6s; }
.icon-contact[data-icon="email"]     .icon-bubble { animation-delay: 1.2s; }
.icon-contact[data-icon="portfolio"] .icon-bubble { animation-delay: 1.8s; }
.icon-contact[data-icon="flashbook"] .icon-bubble { animation-delay: 2.4s; }
@keyframes iconIdle {
  0%, 100% { transform: translateY(0)    scale(1);    border-color: var(--line-2); }
  50%      { transform: translateY(-3px) scale(1.02); border-color: rgba(193, 18, 31, 0.45); box-shadow: 0 10px 22px -14px rgba(193, 18, 31, 0.45); }
}

.icon-contact .icon-bubble svg {
  animation: svgIdle 5s ease-in-out infinite;
}
.icon-contact[data-icon="whatsapp"]  .icon-bubble svg { animation-delay: 0.0s; }
.icon-contact[data-icon="instagram"] .icon-bubble svg { animation-delay: 0.5s; }
.icon-contact[data-icon="email"]     .icon-bubble svg { animation-delay: 1.0s; }
.icon-contact[data-icon="portfolio"] .icon-bubble svg { animation-delay: 1.5s; }
.icon-contact[data-icon="flashbook"] .icon-bubble svg { animation-delay: 2.0s; }
@keyframes svgIdle {
  0%, 100% { transform: rotate(0deg);  stroke: var(--white); }
  50%      { transform: rotate(-4deg); stroke: var(--red); }
}

/* Marquee speed — V10 livelier */
.marquee-track { animation-duration: 16s; }
.marquee {
  position: relative;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 1;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--surface), transparent);
}

/* Headline em pulse */
.headline em,
.feature-title em,
.footer-tagline em {
  animation: emPulse 4s ease-in-out infinite;
}
@keyframes emPulse {
  0%, 100% { color: var(--red); text-shadow: none; }
  50%      { color: var(--red-2); text-shadow: 0 0 14px rgba(255, 16, 36, 0.35); }
}

/* Footer rule animated width */
.footer-rule {
  animation: rulePulse 3.4s ease-in-out infinite;
}
@keyframes rulePulse {
  0%, 100% { width: 50px;  opacity: 1; }
  50%      { width: 110px; opacity: 0.7; }
}

/* Pre-footer red bar pulses */
.pre-footer::before {
  animation: barPulse 3s ease-in-out infinite;
}
@keyframes barPulse {
  0%, 100% { width: 60px;  opacity: 1; }
  50%      { width: 120px; opacity: 0.7; }
}

/* Reduced motion: kill all our extras */
@media (prefers-reduced-motion: reduce) {
  .spot, .fade-up, .stagger > * {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
  .home-card, .category-card, .style-card, .aftercare-card,
  .home-card::after, .category-card::after, .aftercare-card::after,
  .icon-contact .icon-bubble, .icon-contact .icon-bubble svg,
  .headline em, .feature-title em, .footer-tagline em,
  .footer-rule, .pre-footer::before,
  .float-cta, #hero::before,
  .logo-mark circle:nth-child(2),
  .hero-kicker::after,
  .hero-title .title-dayan,
  .footer-block .footer-bg-word {
    animation: none !important;
  }
}

/* =============================================================
   LOADING SCREEN · V8
   Shows on every page load (4s first visit, 2s subsequent).
   Markup injected by loader.js
   ============================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  position: relative;
  width: 80px;
  height: 80px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(244, 239, 231, 0.18);
}

.loader-orbit {
  position: absolute;
  inset: 0;
  animation: loaderOrbitV8 1.6s linear infinite;
}
.loader-orbit::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 16, 36, 0.95), 0 0 28px rgba(193, 18, 31, 0.5);
}

@keyframes loaderOrbitV8 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.loader-text {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--off);
  margin-top: 6px;
  animation: loaderTextFadeV8 1.8s ease-in-out 0.3s infinite;
}

@keyframes loaderTextFadeV8 {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-orbit { animation: none; }
  .loader-orbit::before {
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* =============================================================
   V10 — INTERNAL PAGES MOTION (alive everywhere)
   ============================================================= */

/* ---- GALLERY (portfolio.html) ---- */

/* Gallery cards: same breathing language as home cards */
.gallery-card {
  animation: galleryCardBreath 4.5s ease-in-out infinite, cardBorderPulse 4.5s ease-in-out infinite;
  will-change: transform, box-shadow;
}
.gallery-card:nth-child(1) { animation-delay: 0s, 0s; }
.gallery-card:nth-child(2) { animation-delay: 0.4s, 0.4s; }
.gallery-card:nth-child(3) { animation-delay: 0.8s, 0.8s; }
.gallery-card:nth-child(4) { animation-delay: 1.2s, 1.2s; }
.gallery-card:nth-child(5) { animation-delay: 1.6s, 1.6s; }
.gallery-card:nth-child(6) { animation-delay: 2.0s, 2.0s; }
.gallery-card:nth-child(7) { animation-delay: 2.4s, 2.4s; }
@keyframes galleryCardBreath {
  0%, 100% { transform: translateY(0)    scale(1);     box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
  50%      { transform: translateY(-6px) scale(1.015); box-shadow: 0 14px 32px rgba(0,0,0,0.5), 0 0 22px rgba(193,18,31,0.15); }
}

/* Tabs: active tab glows + breathes */
.tab.active {
  animation: tabPulse 2.2s ease-in-out infinite;
}
@keyframes tabPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193, 18, 31, 0.5); transform: scale(1); }
  50%      { box-shadow: 0 0 16px 0 rgba(255, 16, 36, 0.6); transform: scale(1.04); }
}

/* Tab inactive: subtle border breath */
.tab:not(.active) {
  animation: tabIdleBreath 5s ease-in-out infinite;
}
.tab:not(.active):nth-child(2) { animation-delay: 0.4s; }
.tab:not(.active):nth-child(3) { animation-delay: 0.8s; }
.tab:not(.active):nth-child(4) { animation-delay: 1.2s; }
@keyframes tabIdleBreath {
  0%, 100% { border-color: var(--line); color: var(--muted-2); }
  50%      { border-color: rgba(193, 18, 31, 0.3); color: var(--off); }
}

/* Progress bar: pulse glow */
.progress span {
  animation: progressGlow 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255, 16, 36, 0.5);
}
@keyframes progressGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 16, 36, 0.4); }
  50%      { box-shadow: 0 0 18px rgba(255, 16, 36, 0.95), 0 0 32px rgba(193, 18, 31, 0.4); }
}

/* Gallery title: subtle color shift on em / accent */
.gallery-title {
  animation: galleryTitleBreath 4s ease-in-out infinite;
}
@keyframes galleryTitleBreath {
  0%, 100% { letter-spacing: -0.02em; }
  50%      { letter-spacing: 0em;     }
}

/* Gallery controls icon-btn: breathing border */
.gallery-controls .icon-btn {
  animation: iconBtnBreath 3.5s ease-in-out infinite;
}
.gallery-controls .icon-btn:nth-child(2) { animation-delay: 1.5s; }
@keyframes iconBtnBreath {
  0%, 100% { border-color: var(--line); color: var(--white); }
  50%      { border-color: var(--red); color: var(--red); box-shadow: 0 0 18px rgba(193, 18, 31, 0.35); }
}

/* Gallery tags: red border breath */
.gallery-tag {
  animation: tagBreath 3s ease-in-out infinite;
}
.gallery-tag:nth-child(2) { animation-delay: 1s; }
.gallery-tag:nth-child(3) { animation-delay: 2s; }
@keyframes tagBreath {
  0%, 100% { border-color: rgba(193, 18, 31, 0.45); box-shadow: 0 0 0 0 rgba(255, 16, 36, 0); }
  50%      { border-color: rgba(255, 16, 36, 0.9);  box-shadow: 0 0 12px 0 rgba(255, 16, 36, 0.35); }
}

/* Image cards inside gallery — soft red atmospheric breath */
.gallery-card .img-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(193, 18, 31, 0.0), transparent 70%);
  z-index: 2;
  animation: imgBreath 6s ease-in-out infinite;
}
@keyframes imgBreath {
  0%, 100% { background: radial-gradient(ellipse at 50% 50%, rgba(193, 18, 31, 0.0), transparent 70%); }
  50%      { background: radial-gradient(ellipse at 50% 50%, rgba(193, 18, 31, 0.12), transparent 60%); }
}

/* ---- FAQ (faq.html) ---- */

.faq-item {
  position: relative;
  animation: faqIdle 4s ease-in-out infinite;
}
.faq-item:nth-child(1)  { animation-delay: 0s; }
.faq-item:nth-child(2)  { animation-delay: 0.3s; }
.faq-item:nth-child(3)  { animation-delay: 0.6s; }
.faq-item:nth-child(4)  { animation-delay: 0.9s; }
.faq-item:nth-child(5)  { animation-delay: 1.2s; }
.faq-item:nth-child(6)  { animation-delay: 1.5s; }
.faq-item:nth-child(7)  { animation-delay: 1.8s; }
.faq-item:nth-child(8)  { animation-delay: 2.1s; }
.faq-item:nth-child(9)  { animation-delay: 2.4s; }
.faq-item:nth-child(10) { animation-delay: 2.7s; }
.faq-item:nth-child(n+11) { animation-delay: 3s; }
@keyframes faqIdle {
  0%, 100% { border-bottom-color: var(--line); }
  50%      { border-bottom-color: rgba(193, 18, 31, 0.45); }
}

/* The plus icons all pulse constantly */
.faq-plus::before,
.faq-plus::after {
  animation: faqPlusBreath 2.4s ease-in-out infinite;
}
@keyframes faqPlusBreath {
  0%, 100% { background: var(--red); box-shadow: 0 0 0 rgba(0,0,0,0); }
  50%      { background: var(--red-2); box-shadow: 0 0 8px rgba(255,16,36,0.6); }
}

/* ---- ABOUT (about.html) ---- */

/* Portrait subtle zoom-breath and red rim glow */
.about-photo {
  animation: aboutPhotoBreath 7s ease-in-out infinite;
  will-change: transform, box-shadow;
}
@keyframes aboutPhotoBreath {
  0%, 100% { transform: scale(1);    box-shadow: 0 24px 70px rgba(0,0,0,0.42); }
  50%      { transform: scale(1.014); box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 38px rgba(193,18,31,0.18); }
}

/* Signature line breath */
.signature {
  animation: sigBreath 5s ease-in-out infinite;
}
@keyframes sigBreath {
  0%, 100% { border-top-color: var(--line); }
  50%      { border-top-color: rgba(193, 18, 31, 0.4); }
}

/* ---- AFTERCARE (aftercare.html) — already cards, now also note ---- */

.aftercare-note {
  animation: noteBreath 4s ease-in-out infinite;
}
@keyframes noteBreath {
  0%, 100% { border-top-color: var(--line); }
  50%      { border-top-color: rgba(193, 18, 31, 0.5); }
}

/* Aftercare red side bar pulses */
.aftercare-card::after {
  animation: sideBarPulse 2.6s ease-in-out infinite !important;
}
.aftercare-card:nth-child(2)::after { animation-delay: 0.4s !important; }
.aftercare-card:nth-child(3)::after { animation-delay: 0.8s !important; }
.aftercare-card:nth-child(4)::after { animation-delay: 1.2s !important; }
@keyframes sideBarPulse {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 0 rgba(0,0,0,0); transform: scaleY(1); }
  50%      { opacity: 1;    box-shadow: 0 0 16px rgba(255,16,36,0.7); transform: scaleY(1.05); }
}

/* ---- LISTS (prep, steps, why) — breathe row borders ---- */
.prep-row,
.step,
.why-row {
  animation: rowBreath 3.8s ease-in-out infinite;
}
.prep-row:nth-child(2),
.step:nth-child(2),
.why-row:nth-child(2) { animation-delay: 0.4s; }
.prep-row:nth-child(3),
.step:nth-child(3),
.why-row:nth-child(3) { animation-delay: 0.8s; }
.prep-row:nth-child(4),
.step:nth-child(4),
.why-row:nth-child(4) { animation-delay: 1.2s; }
.prep-row:nth-child(5),
.step:nth-child(5),
.why-row:nth-child(5) { animation-delay: 1.6s; }
@keyframes rowBreath {
  0%, 100% { border-bottom-color: var(--line); }
  50%      { border-bottom-color: rgba(193, 18, 31, 0.35); }
}

/* Numbers in lists glow */
.prep-num,
.step-num,
.why-mark,
.aftercare-num,
.style-num,
.cat-num,
.home-card-num {
  animation: numGlow 2.8s ease-in-out infinite;
}
@keyframes numGlow {
  0%, 100% { text-shadow: none;                                  }
  50%      { text-shadow: 0 0 14px rgba(255, 16, 36, 0.6);       }
}

/* Style card red bottom bar — pulse stronger */
.style-card.in::after,
.style-card::after {
  animation: styleBarBreath 2.6s ease-in-out infinite !important;
  transform: scaleX(0.4);
  transform-origin: left;
}
.style-card:nth-child(2)::after { animation-delay: 0.5s !important; }
.style-card:nth-child(3)::after { animation-delay: 1s   !important; }
.style-card:nth-child(4)::after { animation-delay: 1.5s !important; }
.style-card:nth-child(5)::after { animation-delay: 2s   !important; }
.style-card:nth-child(6)::after { animation-delay: 2.5s !important; }
@keyframes styleBarBreath {
  0%, 100% { transform: scaleX(0.3); opacity: 0.6; }
  50%      { transform: scaleX(1);   opacity: 1;   }
}

/* =============================================================
   V10 — VIVO touches (subtle but constant)
   ============================================================= */

/* Section borders glow red on rotation, stays alive */
main .section {
  animation: sectionBorderBreath 8s ease-in-out infinite;
}
main .section:nth-child(2)  { animation-delay: 1s;   }
main .section:nth-child(3)  { animation-delay: 2s;   }
main .section:nth-child(4)  { animation-delay: 3s;   }
main .section:nth-child(5)  { animation-delay: 4s;   }
main .section:nth-child(n+6){ animation-delay: 5s;   }
@keyframes sectionBorderBreath {
  0%, 100% { border-top-color: var(--line); }
  50%      { border-top-color: rgba(193, 18, 31, 0.35); }
}

/* Float CTA — stronger glow heartbeat */
.float-cta {
  animation: floatRise 0.9s var(--ease) 0.4s backwards, floatBreathStrong 3.6s ease-in-out 1.3s infinite;
}
@keyframes floatBreathStrong {
  0%, 100% {
    border-top-color: rgba(193, 18, 31, 0.5);
    box-shadow: 0 -1px 0 0 rgba(193, 18, 31, 0.4), 0 -8px 18px -10px rgba(193, 18, 31, 0.25);
  }
  50% {
    border-top-color: rgba(255, 16, 36, 1);
    box-shadow: 0 -1px 0 0 rgba(255, 16, 36, 1), 0 -12px 32px -8px rgba(193, 18, 31, 0.65);
  }
}

/* Float CTA button — subtle scale breath */
.float-cta .btn,
.float-cta .btn-primary {
  animation: btnBreath 2.4s ease-in-out infinite;
}
@keyframes btnBreath {
  0%, 100% { transform: scale(1);    box-shadow: 0 6px 18px -6px rgba(193, 18, 31, 0.45); }
  50%      { transform: scale(1.03); box-shadow: 0 0 28px rgba(255, 16, 36, 0.5),
                                                  0 8px 24px -4px rgba(193, 18, 31, 0.6); }
}

/* Nav hairline border below — breathing red */
.site-nav {
  animation: navBorderBreath 4.5s ease-in-out infinite;
}
@keyframes navBorderBreath {
  0%, 100% { border-bottom-color: var(--line); }
  50%      { border-bottom-color: rgba(193, 18, 31, 0.35); }
}

/* Hero kicker line breathes */
.hero-kicker::before {
  animation: heroKickerBar 2.8s ease-in-out infinite;
}
@keyframes heroKickerBar {
  0%, 100% { width: 18px; opacity: 0.7; }
  50%      { width: 36px; opacity: 1;   }
}

/* Reduced motion guard for new animations */
@media (prefers-reduced-motion: reduce) {
  main .section,
  .float-cta,
  .float-cta .btn,
  .float-cta .btn-primary,
  .site-nav,
  .hero-kicker::before,
  .label::before,
  .gallery-card,
  .tab.active,
  .tab:not(.active),
  .progress span,
  .gallery-title,
  .gallery-controls .icon-btn,
  .gallery-tag,
  .gallery-card .img-card::before,
  .faq-item,
  .faq-plus::before,
  .faq-plus::after,
  .about-photo,
  .signature,
  .aftercare-note,
  .aftercare-card::after,
  .prep-row,
  .step,
  .why-row,
  .prep-num,
  .step-num,
  .why-mark,
  .aftercare-num,
  .style-num,
  .cat-num,
  .home-card-num,
  .style-card::after,
  .style-card.in::after,
  .footer-block::before,
  .footer-meta::before,
  .footer-meta .footer-mark .fm-xox {
    animation: none !important;
  }
}

/* =============================================================
   V12 — FAQ related-guides cards (Before You Book + Aftercare)
   ============================================================= */
.faq-links {
  display: grid;
  gap: 14px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(193, 18, 31, 0.25);
}
@media (min-width: 700px) {
  .faq-links { grid-template-columns: 1fr 1fr; gap: 18px; }
}

.faq-link-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 20px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--dark) 100%);
  border: 1px solid var(--line-2);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  animation: cardBreath 4.4s ease-in-out infinite, cardBorderPulse 4.4s ease-in-out infinite;
  will-change: transform, box-shadow, border-color;
}
.faq-link-card:nth-child(2) { animation-delay: 0.55s; }

.faq-link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(380px 160px at 100% 0%, rgba(193, 18, 31, 0.18), transparent 70%);
  opacity: 0;
  animation: cardGlow 4.4s ease-in-out infinite;
  z-index: 0;
}
.faq-link-card:nth-child(2)::after { animation-delay: 0.55s; }

.faq-link-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  padding-top: 2px;
}

.faq-link-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.15;
}

.faq-link-card p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .faq-link-card, .faq-link-card::after { animation: none !important; }
}

/* =============================================================
   NO-IMAGE VARIANTS — flash without photos (default state until
   real flash photos exist). The cards, landing collage and detail
   hero all degrade gracefully into a clean text-led layout. No
   forced placeholder images.
   ============================================================= */

/* Card media slot when there is no image */
.flash-media-noimg {
  position: relative;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(193,18,31,0.10), transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  overflow: hidden;
}
.flash-noimg-marker {
  display: flex;
  align-items: center;
  gap: 12px;
}
.flash-noimg-rule {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--red);
}
.flash-noimg-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* No-image landing style card */
.flash-style-noimg {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 38px 28px;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(193,18,31,0.18), transparent 70%),
    linear-gradient(180deg, #0a0a0a 0%, #060606 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.flash-style-noimg-rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--red);
  margin-right: 18px;
  align-self: center;
}
.flash-style-noimg-num {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 90px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red);
  opacity: 0.85;
}

/* No-image piece detail page — single-column, text-led layout */
.flash-piece-grid.is-noimg {
  grid-template-columns: 1fr;
}
.flash-piece-hero-noimg {
  position: relative;
  padding: 26px 28px 30px;
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(193,18,31,0.14), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--dark) 100%);
  border: 1px solid var(--line-2);
}
@media (min-width: 900px) {
  .flash-piece-grid.is-noimg .flash-piece-hero-noimg {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
  }
}
.flash-piece-hero-marker {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.flash-piece-hero-marker .flash-badges {
  position: static;
  display: flex;
  gap: 6px;
}
.flash-piece-hero-rule {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--red);
}
.flash-piece-hero-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =============================================================
   BACK-LINK ROW — when two options exist (back-to-portfolio +
   back-to-section). The "primary" variant has a stronger color.
   ============================================================= */
.flash-back-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
@media (min-width: 720px) {
  .flash-back-row {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
}
.flash-back-row .flash-back-link { margin-bottom: 0; }
.flash-back-link.is-primary { color: var(--red); }
.flash-back-link.is-primary:hover,
.flash-back-link.is-primary:focus-visible { color: var(--red-2); }
   Replaces the old single-section flash. Shares the same visual
   language as the rest of the site: ivory text on near-black,
   dark-red accents, square edges, subtle motion, generous space.
   ============================================================= */

/* ---------- Shared grid (used by flash-style page) ---------- */
.flash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 38px;
}
@media (min-width: 720px) {
  .flash-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (min-width: 1100px) {
  .flash-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* ---------- Shared card (used on landing + per-style page) ---------- */
.flash-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, var(--surface) 0%, var(--dark) 100%);
  border: 1px solid var(--line-2);
  overflow: hidden;
  transition:
    transform .55s var(--ease),
    border-color .35s ease,
    box-shadow .55s var(--ease);
}
.flash-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 240px at 100% 0%, rgba(193,18,31,0.12), transparent 70%);
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
  z-index: 0;
}
@media (hover: hover) {
  .flash-card:hover,
  .flash-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(193,18,31,0.5);
    box-shadow: 0 18px 38px -22px rgba(193,18,31,0.45);
  }
  .flash-card:hover::before,
  .flash-card:focus-visible::before { opacity: 1; }
}
.flash-card.is-claimed { opacity: 0.78; }
.flash-card.is-claimed .flash-title { color: var(--muted-2); }
.flash-card.is-claimed .img-card img {
  filter: grayscale(0.4) brightness(0.82);
}

.flash-media-wrap {
  position: relative;
  z-index: 1;
}
.flash-media-wrap .img-card {
  border: 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Card body ---------- */
.flash-body {
  position: relative;
  z-index: 1;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.flash-num {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--red);
  text-transform: uppercase;
}
.flash-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 24px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  text-transform: none;
}
.flash-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-2);
  margin: 0;
}
.flash-price {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: var(--off);
  margin-top: 4px;
}
.flash-cta-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.flash-cta-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  transition: color .25s var(--ease), transform .35s var(--ease);
}
@media (hover: hover) {
  .flash-card:hover .flash-cta-text {
    color: var(--red-2);
    transform: translateX(3px);
  }
}

/* ---------- Pills (status + kind) ---------- */
.flash-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}
.flash-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 9px 4px;
  border-radius: 2px;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.flash-pill-repeat {
  color: var(--off);
  background: rgba(8,8,8,0.55);
  border: 1px solid rgba(244,239,231,0.32);
}
.flash-pill-oo {
  color: var(--off);
  background: var(--red-deep);
  border: 1px solid var(--red);
  box-shadow: 0 0 14px -3px rgba(193,18,31,0.6);
}
.flash-pill-claimed {
  color: var(--muted);
  background: rgba(8,8,8,0.65);
  border: 1px solid rgba(244,239,231,0.18);
  letter-spacing: 0.22em;
}

/* =============================================================
   FLASH LANDING (flash.html) — collage style cards, one per style
   ============================================================= */
.flash-style-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 38px;
}
@media (min-width: 720px) { .flash-style-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (min-width: 1100px) { .flash-style-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.flash-style-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, var(--surface) 0%, var(--dark) 100%);
  border: 1px solid var(--line-2);
  overflow: hidden;
  transition:
    transform .55s var(--ease),
    border-color .35s ease,
    box-shadow .55s var(--ease);
}
.flash-style-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 100% 0%, rgba(193,18,31,0.14), transparent 70%);
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
  z-index: 1;
}
@media (hover: hover) {
  .flash-style-card:hover,
  .flash-style-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(193,18,31,0.55);
    box-shadow: 0 22px 44px -24px rgba(193,18,31,0.5);
  }
  .flash-style-card:hover::before,
  .flash-style-card:focus-visible::before { opacity: 1; }
}

.flash-style-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 16 / 11;
  background: #050505;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.flash-style-thumb {
  position: relative;
  display: block;
  overflow: hidden;
}
.flash-style-thumb .img-card {
  aspect-ratio: auto;
  height: 100%;
  border: 0;
}
.flash-style-thumb .img-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flash-style-thumb-1 {
  grid-row: 1 / span 2;
  grid-column: 1;
}
.flash-style-thumb-2 { grid-row: 1; grid-column: 2; }
.flash-style-thumb-3 { grid-row: 2; grid-column: 2; }

/* 1-piece style → single full-width hero */
.flash-style-collage[data-count="1"] {
  grid-template-columns: 1fr;
}
.flash-style-collage[data-count="1"] .flash-style-thumb-1 {
  grid-column: 1;
  grid-row: 1 / span 2;
}

/* 2-piece style → second thumb spans both rows so there's no empty slot */
.flash-style-collage[data-count="2"] .flash-style-thumb-2 {
  grid-row: 1 / span 2;
}

.flash-style-card:only-child .flash-style-collage,
.flash-style-thumb-1:last-child {
  grid-template-columns: 1fr;
}

.flash-style-body {
  position: relative;
  z-index: 2;
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flash-style-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--red);
  text-transform: uppercase;
}
.flash-style-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--white);
  margin: 4px 0 6px;
  text-transform: none;
}
.flash-style-count {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.flash-style-link {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--red);
  transition: color .25s var(--ease), transform .35s var(--ease);
  display: inline-block;
}
@media (hover: hover) {
  .flash-style-card:hover .flash-style-link {
    color: var(--red-2);
    transform: translateX(3px);
  }
}

/* =============================================================
   FLASH PER-STYLE PAGE (flash-style.html)
   ============================================================= */
.flash-back-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 22px;
  transition: color .2s ease, transform .25s var(--ease);
}
.flash-back-link:hover,
.flash-back-link:focus-visible { color: var(--red); transform: translateX(-2px); }

.flash-style-empty {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-2);
  padding: 28px 24px;
  border: 1px dashed var(--line-2);
  text-align: center;
  margin-top: 38px;
}

/* Custom CTA at the bottom of each style page */
.flash-custom-cta {
  margin-top: 56px;
  padding: 44px 26px;
  background:
    radial-gradient(60% 60% at 0% 0%, rgba(193,18,31,0.14), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--dark) 100%);
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--red);
  position: relative;
  overflow: hidden;
}
.flash-custom-cta::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 100%;
  background: radial-gradient(120% 100% at 100% 0%, rgba(193,18,31,0.10), transparent 60%);
  pointer-events: none;
}
.flash-custom-cta-inner {
  position: relative;
  max-width: 56ch;
}
.flash-custom-cta .label { margin-bottom: 14px; }
.flash-custom-cta .headline { font-size: clamp(28px, 5.5vw, 38px); margin-bottom: 16px; }
.flash-custom-cta .lead { margin-bottom: 22px; }
.flash-custom-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* =============================================================
   FLASH PIECE DETAIL PAGE (flash-piece.html)
   ============================================================= */
.flash-piece-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 24px;
}
@media (min-width: 900px) {
  .flash-piece-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }
}

.flash-piece-hero {
  position: relative;
}
.flash-piece-hero .img-card {
  border: 1px solid var(--line-2);
}
@media (min-width: 900px) {
  .flash-piece-hero {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
  }
}

.flash-piece-info { min-width: 0; }
.flash-piece-info .label { margin-bottom: 14px; }
.flash-piece-info .headline {
  font-size: clamp(34px, 6.5vw, 48px);
  margin-bottom: 24px;
}

.flash-piece-section { margin-top: 28px; }
.flash-piece-section-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.flash-piece-long {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted-2);
  margin: 0;
}

/* Size pills — interactive */
.flash-piece-sizes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 360px;
}
@media (min-width: 480px) {
  .flash-piece-sizes-grid { grid-template-columns: 1fr 1fr; }
}

.flash-size-pill {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: inherit;
  font-family: var(--font-body);
  cursor: pointer;
  transition: .25s var(--ease);
  text-align: left;
}
.flash-size-pill[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.flash-size-pill .flash-size-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
}
.flash-size-pill .flash-size-price {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: var(--off);
}
@media (hover: hover) {
  .flash-size-pill:not([disabled]):hover {
    border-color: rgba(244,239,231,0.4);
    background: rgba(244,239,231,0.04);
  }
}
.flash-size-pill.is-selected {
  border-color: var(--red);
  background: rgba(193,18,31,0.10);
  box-shadow: 0 0 0 1px var(--red) inset;
}
.flash-size-pill.is-selected .flash-size-price { color: var(--red-2); }

.flash-piece-sizes-help {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 360px;
}

/* Apply block */
.flash-apply {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.flash-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.flash-apply-claimed {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.flash-apply-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.flash-apply-text {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted-2);
  margin: 0 0 18px;
  max-width: 50ch;
}

/* Process / detail photos */
.flash-piece-photos {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.flash-piece-photos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}
@media (min-width: 720px) {
  .flash-piece-photos-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (min-width: 1100px) {
  .flash-piece-photos-grid { grid-template-columns: repeat(3, 1fr); }
}
.flash-piece-photos-grid .img-card {
  border: 1px solid var(--line);
}

/* ---------- Closing note ---------- */
.flash-note {
  margin: 38px auto 0;
  max-width: 56ch;
  padding: 18px 22px;
  border-left: 2px solid var(--red);
  background: rgba(193,18,31,0.04);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted-2);
}

/* =============================================================
   PORTFOLIO GALLERY — CTA card at the end of each style carousel
   ============================================================= */
.gallery-cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(140% 100% at 100% 0%, rgba(193,18,31,0.18), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--dark) 100%);
  border: 1px solid var(--line-2);
  overflow: hidden;
  transition:
    transform .55s var(--ease),
    border-color .35s ease,
    box-shadow .55s var(--ease);
}
.gallery-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 100% 100%, rgba(193,18,31,0.20), transparent 70%);
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .gallery-cta-card:hover,
  .gallery-cta-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(193,18,31,0.6);
    box-shadow: 0 18px 38px -22px rgba(193,18,31,0.55);
  }
  .gallery-cta-card:hover::before,
  .gallery-cta-card:focus-visible::before { opacity: 1; }
  .gallery-cta-card:hover .gallery-cta-arrow svg { transform: translateX(8px); }
}

.gallery-cta-inner {
  position: relative;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.gallery-cta-kicker {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.gallery-cta-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.3vw, 28px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--white);
  text-transform: none;
  margin: 0;
}
.gallery-cta-title em {
  font-style: normal;
  color: var(--red);
  font-weight: 600;
}

.gallery-cta-arrow {
  display: block;
  width: 64px;
  height: 16px;
  margin-top: 8px;
  color: var(--off);
}
.gallery-cta-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform .45s var(--ease);
}

.gallery-cta-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: .25s var(--ease);
  box-shadow: 0 6px 16px -8px rgba(193,18,31,0.5);
}
@media (hover: hover) {
  .gallery-cta-card:hover .gallery-cta-btn {
    background: var(--red-2);
    border-color: var(--red-2);
    box-shadow: 0 0 22px var(--glow), 0 8px 22px -6px rgba(193,18,31,0.55);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .flash-card, .flash-style-card, .gallery-cta-card,
  .flash-cta-text, .gallery-cta-arrow svg,
  .flash-back-link, .flash-style-link {
    transition: none !important;
    transform: none !important;
  }
}

/* Icon inside .btn (used by Apply / Custom CTA buttons on flash pages) */
.flash-btn-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.flash-btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Flash pricing display — starting price + minimum size */
.flash-piece-pricing {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.flash-piece-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}
.flash-piece-minsize {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.flash-min-size {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Fix: remove underlines from gallery card + flash card anchor links */
a.gallery-card,
a.gallery-card:hover,
a.gallery-card:focus,
a.flash-card,
a.flash-card:hover,
a.flash-card:focus,
a.flash-style-card,
a.flash-style-card:hover,
a.flash-style-card:focus {
  text-decoration: none !important;
}
.gallery-caption h3,
.gallery-caption p {
  text-decoration: none !important;
}

/* =====================================================================
   MOTION V10 — MAXIMUM INTERACTIVITY STYLES
   ===================================================================== */

/* ---------- Custom Cursor ---------- */
.xox-cursor { pointer-events: none; position: fixed; top: 0; left: 0; z-index: 99998; mix-blend-mode: difference; transition: opacity 0.3s ease; }

.xox-cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: #F4EFE7;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, background 0.25s ease;
}

.xox-cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 1.5px solid rgba(244, 239, 231, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease;
}

.xox-cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 80px; height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 18, 31, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 99996;
  filter: blur(8px);
}

.xox-cursor-hover .xox-cursor-dot {
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--red);
}

.xox-cursor-hover .xox-cursor-ring {
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-color: var(--red);
  background: rgba(193, 18, 31, 0.06);
}

.xox-cursor-click .xox-cursor-ring {
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border-width: 2px;
}

/* Hide default cursor when custom cursor active */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none !important; }
  a, button, [role="button"], input, textarea, select, .btn, .btn-ghost { cursor: none !important; }
}

/* ---------- Scroll Progress ---------- */
.xox-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #C1121F, #FF1024, #C1121F);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255, 16, 36, 0.5);
}

/* ---------- Navbar Scroll Effects ---------- */
.site-nav {
  transition:
    height 0.4s var(--ease),
    background 0.4s ease,
    transform 0.4s var(--ease),
    box-shadow 0.4s ease;
}

.site-nav.nav-scrolled {
  height: 50px;
  background: rgba(3, 3, 3, 0.85);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(193, 18, 31, 0.05);
}

.site-nav.nav-hidden {
  transform: translateX(-50%) translateY(-110%);
}

/* ---------- Hero Cinematic Reveal ---------- */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotateX(40deg);
  filter: blur(4px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.hero-revealed .word-reveal {
  opacity: 1;
  transform: translateY(0) rotateX(0);
  filter: blur(0);
}

.char-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) scaleY(0.3);
  filter: blur(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease);
}

.hero-revealed .char-reveal {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  filter: blur(0);
}

/* Hero actions fade in last */
.hero-actions {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease) 0.8s, transform 0.7s var(--ease) 0.8s;
}

.hero-revealed .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Image Reveal — DISABLED (conflicts with app.js lazy-load) ---------- */

/* ---------- Headline Clip-Path Reveal ---------- */
.text-clip-reveal {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.8s var(--ease);
}

.text-clip-reveal.text-revealed {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ---------- Tilt Card Enhancements ---------- */
.tilt-card {
  transition: transform 0.2s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

@media (hover: hover) {
  .tilt-card:hover {
    box-shadow:
      0 20px 50px -12px rgba(0, 0, 0, 0.5),
      0 0 30px -5px rgba(193, 18, 31, 0.15);
  }
}

/* ---------- Magnetic Button Base ---------- */
.magnetic {
  transition: transform 0.25s var(--ease);
}

/* ---------- Rule Line Animation ---------- */
.rule-animated {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--ease);
}

.rule-animated.rule-grow {
  transform: scaleX(1);
}

/* ---------- Button Ripple ---------- */
.btn, .btn-ghost {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(244, 239, 231, 0.2);
  transform: translate(-50%, -50%);
  animation: rippleExpand 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleExpand {
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* ---------- Counter Animation ---------- */
.home-card-num {
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.counter-animate {
  animation: counterPop 0.6s var(--ease);
}

@keyframes counterPop {
  0%   { transform: scale(0.5) rotateY(90deg); opacity: 0; }
  60%  { transform: scale(1.15) rotateY(-5deg); opacity: 1; }
  100% { transform: scale(1) rotateY(0); opacity: 1; }
}

/* ---------- Floating Particles ---------- */
.xox-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

#hero {
  position: relative;
  overflow: hidden;
}

#hero .hero-inner {
  position: relative;
  z-index: 2;
}

/* ---------- Page Transition ---------- */
.xox-page-transition {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #030303;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.xox-page-transition.transitioning {
  transform: scaleY(1);
  pointer-events: all;
}

/* ---------- Enhanced Icon Hover Glow ---------- */
@media (hover: hover) {
  .icon-contact:hover .icon-bubble {
    box-shadow: 0 0 20px rgba(193, 18, 31, 0.4), 0 0 40px rgba(193, 18, 31, 0.15);
  }

  .home-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(193, 18, 31, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
  }

  .home-card:hover::before {
    opacity: 1;
  }

  .home-card {
    position: relative;
  }
}

/* ---------- Reduced motion overrides ---------- */
@media (prefers-reduced-motion: reduce) {
  .xox-cursor, .xox-cursor-dot, .xox-cursor-ring, .xox-cursor-glow,
  .xox-scroll-progress, .xox-particles, .xox-page-transition { display: none !important; }

  .word-reveal, .char-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .hero-actions {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .text-clip-reveal {
    clip-path: none !important;
    transition: none !important;
  }

  .rule-animated {
    transform: none !important;
    transition: none !important;
  }

  body { cursor: auto !important; }
  a, button, [role="button"] { cursor: auto !important; }
}

/* ---------- Touch device: hide cursor, keep other effects ---------- */
@media (hover: none) {
  .xox-cursor, .xox-cursor-dot, .xox-cursor-ring, .xox-cursor-glow { display: none !important; }
  body { cursor: auto !important; }
  a, button, [role="button"] { cursor: auto !important; }
}

/* =====================================================================
   MOBILE INTERACTIVITY LAYER (v11)
   ===================================================================== */

/* ---------- Touch Glow Pulse ---------- */
.xox-touch-glow {
  position: fixed;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 18, 31, 0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 99990;
  animation: touchGlowPulse 0.7s ease-out forwards;
}

@keyframes touchGlowPulse {
  0%   { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* ---------- Tap Pulse on Cards ---------- */
.tap-pulse {
  animation: tapPulseAnim 0.3s var(--ease) !important;
}

@keyframes tapPulseAnim {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(193, 18, 31, 0); }
  50%  { transform: scale(0.97); box-shadow: 0 0 0 6px rgba(193, 18, 31, 0.2); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(193, 18, 31, 0); }
}

/* ---------- Section Enter Haptic Flash ---------- */
.section-enter {
  animation: sectionFlash 0.5s var(--ease);
}

@keyframes sectionFlash {
  0%   { border-left: 2px solid transparent; }
  30%  { border-left: 2px solid rgba(193, 18, 31, 0.6); }
  100% { border-left: 2px solid transparent; }
}

/* ---------- Scroll Vibrancy Background ---------- */
.xox-scroll-vibrancy {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

/* ---------- Scroll Down Hint ---------- */
.xox-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  opacity: 0.7;
  animation: scrollHintBounce 2s var(--ease) infinite;
  z-index: 5;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.xox-scroll-hint.hint-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

@keyframes scrollHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Gyro Active Indicator ---------- */
.gyro-active .hero-inner {
  transition: transform 0.1s linear;
}

/* ---------- Enhanced Mobile Stagger (snappier) ---------- */
@media (hover: none) and (pointer: coarse) {
  .stagger > * {
    transform: translateY(20px) scale(0.96);
    transition:
      opacity 0.5s var(--ease),
      transform 0.5s var(--ease);
  }

  .stagger.spot-in > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0) scale(1); }
  .stagger.spot-in > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0) scale(1); }
  .stagger.spot-in > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0) scale(1); }
  .stagger.spot-in > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0) scale(1); }
  .stagger.spot-in > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0) scale(1); }
  .stagger.spot-in > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0) scale(1); }
  .stagger.spot-in > *:nth-child(n+7) { transition-delay: 0.47s; opacity: 1; transform: translateY(0) scale(1); }

  /* Mobile card active states — red border glow on tap */
  .home-card:active,
  .gallery-card:active,
  .flash-card:active,
  .icon-contact:active {
    box-shadow: 0 0 0 1px rgba(193, 18, 31, 0.4), 0 0 20px -4px rgba(193, 18, 31, 0.3) !important;
    transform: scale(0.98);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  /* Buttons: punchier active state */
  .btn:active {
    background: var(--red-2) !important;
    box-shadow: 0 0 24px rgba(255, 16, 36, 0.5) !important;
    transform: scale(0.96);
  }

  .btn-ghost:active {
    border-color: var(--red) !important;
    color: var(--red) !important;
    box-shadow: 0 0 20px rgba(193, 18, 31, 0.2) !important;
    transform: scale(0.96);
  }

  /* Icon contacts: glow on tap */
  .icon-contact:active .icon-bubble {
    box-shadow: 0 0 16px rgba(193, 18, 31, 0.5), 0 0 32px rgba(193, 18, 31, 0.2);
    transform: scale(1.1) rotate(-6deg);
    transition: all 0.2s ease;
  }

  /* Mobile hero: more dramatic char reveal */
  .char-reveal {
    transform: translateY(50px) scaleY(0.2) rotateX(60deg);
    filter: blur(8px);
  }

  .hero-revealed .char-reveal {
    transform: translateY(0) scaleY(1) rotateX(0);
    filter: blur(0);
  }

  /* Mobile word reveal: slide from bottom with scale */
  .word-reveal {
    transform: translateY(24px) scale(0.9);
    filter: blur(5px);
  }

  .hero-revealed .word-reveal {
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  /* Mobile nav — glassmorphism boost on scroll */
  .site-nav.nav-scrolled {
    height: 48px;
    background: rgba(3, 3, 3, 0.75);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
  }

  /* Smoother page transition for mobile */
  .xox-page-transition.transitioning {
    animation: mobilePageWipe 0.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  }

  @keyframes mobilePageWipe {
    0%   { clip-path: circle(0% at 50% 50%); }
    100% { clip-path: circle(150% at 50% 50%); }
  }

  .xox-page-transition {
    transform: none;
    clip-path: circle(0% at 50% 50%);
  }

  /* Footer XOX letters subtle pulse on mobile */
  .fbw-x, .fbw-o {
    animation: fbwPulseMobile 4s ease-in-out infinite;
  }

  .fbw-o { animation-delay: 1s; }
  .fbw-right { animation-delay: 2s; }

  @keyframes fbwPulseMobile {
    0%, 100% { opacity: 0.08; }
    50%      { opacity: 0.22; }
  }
}
