/* A stronger motion · B more SVG décor · C subtle 3D tilt */

/* —— A: stronger page motion —— */
body.is-ready .hero-copy > * {
  animation: risePro 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
body.is-ready .hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
body.is-ready .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
body.is-ready .hero-copy > *:nth-child(3) { animation-delay: 0.18s; }
body.is-ready .hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
body.is-ready .hero-copy > *:nth-child(5) { animation-delay: 0.34s; }
body.is-ready .hero-copy > *:nth-child(6) { animation-delay: 0.42s; }
body.is-ready .hero-copy > *:nth-child(7) { animation-delay: 0.5s; }

body.is-ready .hero-photo {
  animation: photoPro 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

@keyframes risePro {
  from {
    opacity: 0;
    transform: translateY(28px) rotateX(6deg);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes photoPro {
  from {
    opacity: 0;
    transform: translateY(36px) scale(1.04) rotateY(-4deg);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  filter: blur(1.5px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

.scroll-progress {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a67c3d, var(--accent));
  background-size: 200% 100%;
  animation: progressShimmer 3s linear infinite;
  box-shadow: 0 0 12px rgba(107, 79, 42, 0.25);
}

@keyframes progressShimmer {
  to {
    background-position: 200% 0;
  }
}

/* Magnetic / press feedback */
.btn-primary,
.nav-cta,
.bar-btn {
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s,
    background 0.2s,
    border-color 0.2s,
    letter-spacing 0.2s;
}

.btn-primary.is-press,
.nav-cta.is-press {
  transform: scale(0.97) !important;
}

/* Hero title letter shimmer underline */
.hero-title {
  position: relative;
  display: inline-block;
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.08em;
  width: 100%;
  height: 0.08em;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.8s, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-ready .hero-title::after {
  opacity: 0.45;
  transform: scaleX(1);
  animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 0.55;
  }
}

/* Floating CTA pulse ring (subtle) */
.btn-primary {
  isolation: isolate;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s, transform 0.45s;
  pointer-events: none;
  z-index: -1;
}

.btn-primary:hover::before {
  opacity: 1;
  transform: scale(1.02);
}

/* —— B: more decorative SVG —— */
.deco-corner {
  position: absolute;
  width: 56px;
  height: 56px;
  color: var(--line-strong);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s, color 0.3s;
}

.deco-corner svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.deco-corner .dc {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in .deco-corner,
.section-head.in ~ * .deco-corner,
.has-deco.in .deco-corner {
  opacity: 0.85;
}

.reveal.in .deco-corner .dc,
.has-deco.in .deco-corner .dc {
  stroke-dashoffset: 0;
}

.deco-tl {
  top: 0.5rem;
  left: 0.5rem;
}
.deco-br {
  right: 0.5rem;
  bottom: 0.5rem;
  transform: rotate(180deg);
}

body.rtl .deco-tl {
  left: auto;
  right: 0.5rem;
  transform: scaleX(-1);
}
body.rtl .deco-br {
  right: auto;
  left: 0.5rem;
  transform: rotate(180deg) scaleX(-1);
}

/* Botanical side motif */
.side-motif {
  position: absolute;
  width: 72px;
  height: 160px;
  color: color-mix(in srgb, var(--accent) 35%, var(--line));
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-motif svg {
  width: 100%;
  height: 100%;
}

.side-motif.left {
  left: max(0.5rem, calc(50% - 34rem));
  top: 20%;
  transform: translateX(-12px);
}

.side-motif.right {
  right: max(0.5rem, calc(50% - 34rem));
  top: 35%;
  transform: translateX(12px) scaleX(-1);
}

.section.has-motif.in .side-motif {
  opacity: 1;
  transform: none;
}

.section.has-motif.in .side-motif.right {
  transform: scaleX(-1);
}

@media (max-width: 1100px) {
  .side-motif {
    display: none;
  }
}

/* Star constellation above reviews */
.constellation {
  display: flex;
  gap: 0.35rem;
  margin: 0.5rem 0 0.75rem;
  color: var(--accent);
}

.constellation span {
  display: block;
  width: 10px;
  height: 10px;
  opacity: 0;
  transform: scale(0.4) rotate(-20deg);
  transition: opacity 0.35s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.constellation span svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.section-head.in .constellation span {
  opacity: 0.7;
  transform: none;
}

.section-head.in .constellation span:nth-child(1) { transition-delay: 0.05s; }
.section-head.in .constellation span:nth-child(2) { transition-delay: 0.12s; }
.section-head.in .constellation span:nth-child(3) { transition-delay: 0.19s; }
.section-head.in .constellation span:nth-child(4) { transition-delay: 0.26s; }
.section-head.in .constellation span:nth-child(5) { transition-delay: 0.33s; }

/* Ink splash under reserve form */
.ink-splash {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -20px;
  bottom: -30px;
  color: color-mix(in srgb, var(--accent) 12%, transparent);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.reserve-layout {
  position: relative;
}

.form {
  position: relative;
  z-index: 1;
}

.reveal.in .ink-splash,
.form.reveal.in .ink-splash,
.reserve-layout .form.in .ink-splash {
  opacity: 1;
  transform: scale(1);
}

body.rtl .ink-splash {
  right: auto;
  left: -20px;
}

/* Animated dashed border around form */
.form-shell {
  position: relative;
  padding: 0.25rem;
}

.form-shell::before {
  content: "";
  position: absolute;
  inset: -0.35rem -0.6rem -0.6rem;
  border: 1px dashed color-mix(in srgb, var(--line-strong) 80%, transparent);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.6s, transform 0.7s;
  pointer-events: none;
  z-index: 0;
}

.form-shell:has(form.in)::before,
.form-shell.is-ready::before {
  opacity: 1;
  transform: scale(1);
}

/* —— C: subtle 3D tilt cards —— */
.tilt-wrap {
  perspective: 900px;
  transform-style: preserve-3d;
}

.tilt-card {
  transform-style: preserve-3d;
  transition:
    transform 0.2s ease-out,
    box-shadow 0.3s ease,
    background 0.25s;
  will-change: transform;
  position: relative;
}

.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 42%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  mix-blend-mode: soft-light;
}

.tilt-card.is-tilting {
  box-shadow:
    0 18px 40px rgba(26, 23, 20, 0.1),
    0 2px 0 color-mix(in srgb, var(--line) 80%, transparent);
  z-index: 2;
}

.tilt-card.is-tilting::after {
  opacity: 1;
}

/* dish / review / gallery / feature as tilt surfaces */
.dish-card.tilt-card {
  padding: 1.15rem 0.85rem;
  margin-inline: -0.85rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.dish-card.tilt-card:hover {
  background: color-mix(in srgb, var(--paper) 90%, var(--paper-2));
}

.review.tilt-card {
  border-color: var(--line);
  background: var(--white);
}

.review.tilt-card.is-tilting {
  border-color: var(--line-strong);
  background: #fffcf7;
}

.feature.tilt-card {
  padding: 1.15rem 0.75rem;
  margin-inline: -0.75rem;
  border-radius: 2px;
}

.gallery-mosaic a.tilt-card {
  transform-style: preserve-3d;
  box-shadow: 0 0 0 1px var(--line);
}

.gallery-mosaic a.tilt-card.is-tilting {
  box-shadow:
    0 20px 40px rgba(26, 23, 20, 0.14),
    0 0 0 1px var(--line-strong);
}

.gallery-mosaic a.tilt-card img {
  transform: translateZ(12px) scale(1.02);
}

.hero-photo.tilt-card {
  transition: transform 0.25s ease-out, box-shadow 0.3s;
}

.hero-photo.tilt-card.is-tilting {
  box-shadow: 0 28px 60px rgba(26, 23, 20, 0.16);
}

.hero-photo.tilt-card .photo-frame {
  transform: translateZ(8px);
}

/* Floating badge on hero photo */
.hero-badge-3d {
  position: absolute;
  left: 1rem;
  bottom: 2.6rem;
  z-index: 3;
  padding: 0.65rem 0.85rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  color: var(--ink-soft);
  max-width: 11rem;
  line-height: 1.35;
  transform: translateZ(28px);
  box-shadow: 0 10px 24px rgba(26, 23, 20, 0.08);
  opacity: 0;
  animation: badgeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

body.is-ready .hero-badge-3d {
  animation-play-state: running;
}

@keyframes badgeIn {
  from {
    opacity: 0;
    transform: translateZ(28px) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateZ(28px);
  }
}

body.rtl .hero-badge-3d {
  left: auto;
  right: 1rem;
}

/* Ornament stronger draw + secondary path */
.ornament {
  width: 64px;
  height: 20px;
}

.ornament .draw-2 {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
  stroke-linecap: round;
  opacity: 0.45;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.reveal.in .ornament .draw-2,
.ornament.is-drawn .draw-2 {
  stroke-dashoffset: 0;
}

/* Section depth on enter */
.section {
  transition: background-color 0.6s ease;
}

/* Cursor glow on reserve area only */
.reserve {
  overflow: hidden;
}

.cursor-glow {
  pointer-events: none;
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 14%, transparent) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 0;
}

.reserve.is-hot .cursor-glow {
  opacity: 1;
}

/* Checklist tick draw */
.plain-list li {
  transition: transform 0.3s, color 0.3s;
}

.plain-list li::before {
  transition: color 0.3s, transform 0.3s;
}

.story-body.reveal.in .plain-list li {
  animation: liIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.story-body.reveal.in .plain-list li:nth-child(1) { animation-delay: 0.08s; }
.story-body.reveal.in .plain-list li:nth-child(2) { animation-delay: 0.14s; }
.story-body.reveal.in .plain-list li:nth-child(3) { animation-delay: 0.2s; }
.story-body.reveal.in .plain-list li:nth-child(4) { animation-delay: 0.26s; }

@keyframes liIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.rtl .story-body.reveal.in .plain-list li {
  animation-name: liInRtl;
}

@keyframes liInRtl {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Mobile: lighter 3D */
@media (max-width: 700px) {
  .tilt-card.is-tilting {
    box-shadow: 0 10px 24px rgba(26, 23, 20, 0.08);
  }

  .hero-badge-3d {
    font-size: 0.72rem;
    max-width: 9.5rem;
  }
}

/* Touch devices: disable tilt JS still ok, CSS hover reduced */
@media (hover: none) {
  .tilt-card.is-tilting::after {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    filter: none;
  }

  .tilt-card,
  .hero-photo.tilt-card,
  .btn-primary::before,
  .cursor-glow,
  .scroll-progress {
    animation: none !important;
    transition: none !important;
  }

  .tilt-card {
    transform: none !important;
  }

  .hero-badge-3d {
    animation: none;
    opacity: 1;
  }

  .story-body.reveal.in .plain-list li {
    animation: none;
  }
}
