/*
 * logo-anim.css — ZOZ Design Studio logo animation + hover interactions
 * Technique: CSS clip-path wipe (fill-based SVG, no stroke required)
 * Bronze frame paths: staggered wipe-reveal left-to-right
 * Glyph groups: fade + translate-up cascade
 * Nav logo + button hover: micro-interactions
 */

/* ─── Logo SVG sizing in nav ──────────────────────────────────────────── */
.logo-svg {
  height: 3rem;    /* matches h-12 = 48px */
  width: auto;
  display: block;
  overflow: visible;
}

/* ─── Entry animation: run once on page load ─────────────────────────── */

/* Bronze decorative paths — wipe reveal via clip-path */
/* 1.8x slowdown: durations × 1.8, delays × 1.8, ease → cubic-bezier(0.4,0,0.2,1) for ritual draw-on feel */
.la-bronze-layer .la-p1 {
  animation: la-wipe-x 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.27s both;
}
.la-bronze-layer .la-p2 {
  animation: la-wipe-x 1.3s cubic-bezier(0.4, 0, 0.2, 1) 1.00s both;
}
.la-bronze-layer .la-p3 {
  animation: la-scale-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.44s both;
}

/* Large bracket frames — outer frame draws in from both sides */
.la-frame-layer .la-f1 {
  animation: la-wipe-x 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.36s both;
}
.la-frame-layer .la-f2 {
  animation: la-wipe-x-rev 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.36s both;
}

/* Chinese glyph groups — staggered fade + lift */
.la-glyphs-layer .la-g1 {
  animation: la-glyph-in 1.1s ease-out 1.89s both;
}
.la-glyphs-layer .la-g2 {
  animation: la-glyph-in 1.1s ease-out 2.16s both;
}
.la-glyphs-layer .la-g3 {
  animation: la-glyph-in 0.9s ease-out 2.43s both;
}

/* ─── Keyframes ──────────────────────────────────────────────────────── */

/* Wipe in from left — uses clip-path inset */
@keyframes la-wipe-x {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  10%  { opacity: 1; }
  to   { clip-path: inset(0 0% 0 0); opacity: 1; }
}

/* Wipe in from right (mirror) */
@keyframes la-wipe-x-rev {
  from { clip-path: inset(0 0 0 100%); opacity: 0; }
  10%  { opacity: 1; }
  to   { clip-path: inset(0 0 0 0%); opacity: 1; }
}

/* Scale pop for small accent squares */
@keyframes la-scale-in {
  from { opacity: 0; transform: scale(0.3); transform-origin: center; }
  to   { opacity: 1; transform: scale(1); }
}

/* Glyph lift + fade in */
@keyframes la-glyph-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Logo hover: subtle scale + bronze underline draw-in ────────────── */
.logo-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  text-decoration: none;
}

.logo-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 1px;
  width: 0;
  background: #b99757;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-nav-link:hover::after {
  width: 100%;
}

.logo-nav-link:hover .logo-svg {
  transform: scale(1.02);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-svg {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Button hover: ease + letter-spacing + micro shadow lift ────────── */

/* Primary CTA buttons (CONTACT nav link, submit button) */
.btn-hover,
a.hover\:text-bronze,
nav ul a,
button[type="submit"],
.hint-tag {
  transition:
    color 0.28s ease,
    background-color 0.28s ease,
    border-color 0.28s ease,
    letter-spacing 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.22s ease;
}

/* Nav CONTACT link hover */
nav ul a:hover {
  letter-spacing: calc(0.18em + 0.02em);
}

/* Submit button — bronze fill lift */
button[type="submit"]:hover {
  box-shadow: 0 4px 16px rgba(107, 91, 62, 0.22);
  transform: translateY(-1px);
  letter-spacing: calc(0.18em + 0.02em);
}

button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: none;
}

/* hint-tag chips in contact form */
.hint-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(107, 91, 62, 0.15);
}

/* Card hover (READ MORE / project cards) */
.card-hover:hover {
  box-shadow: 0 8px 24px rgba(42, 42, 42, 0.10);
}

/* ─── Respect prefers-reduced-motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .la-path,
  .la-glyph,
  .la-frame,
  .la-bronze-layer .la-p1,
  .la-bronze-layer .la-p2,
  .la-bronze-layer .la-p3,
  .la-frame-layer .la-f1,
  .la-frame-layer .la-f2,
  .la-glyphs-layer .la-g1,
  .la-glyphs-layer .la-g2,
  .la-glyphs-layer .la-g3 {
    animation: none !important;
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .logo-nav-link::after,
  .logo-svg,
  button[type="submit"],
  .hint-tag,
  nav ul a {
    transition: none !important;
  }
}
