:root {
  --primary: #2d5f5a;        /* deep teal */
  --secondary: #e74c5a;      /* bold coral-red */
  --forest: #3d7a6f;         /* forest green */
  --orange: #e08850;         /* burnt orange */
  --rose: #d4969a;           /* dusty rose */
  --mustard: #d4c95f;        /* mustard yellow */
  --sage: #6ba89f;           /* sage green */
  --blush: #e8b8b8;          /* blush pink */
  --bg: #faf8f5;             /* warm cream */
  --bg-sage-tint: #eef4f2;
  --bg-blush-tint: #fbeeee;
  --text: #2a2420;
  --text-on-dark: #faf8f5;
  --muted: #8b8680;          /* taupe */
  --font-heading: 'Caveat', 'Segoe Script', cursive;
  --font-tag: 'Permanent Marker', cursive;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);   /* soft settle */
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);   /* tiny playful overshoot */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.nav-open { overflow: hidden; } /* html only: hiding body overflow would break the sticky header */

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; margin: 0 0 0.5em; color: var(--primary); }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.7rem; }

img { max-width: 100%; display: block; }

a { color: inherit; }

section[id] { scroll-margin-top: 84px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Our own tap feedback replaces the grey mobile tap flash on these */
.cta-button, .contact-button, .bio-chip, .lang-toggle, .social-icons a, .site-nav a, .nav-toggle,
.nav-lang-switch button, .hero-dots button, .round-arrow, .story-dot, .follower-stat, .ambiance-item,
.mobile-cta a { -webkit-tap-highlight-color: transparent; }

/* --- Language toggle: single source of truth, no competing display rules --- */
[data-lang] { display: none; }
html[data-lang-current="fr"] [data-lang="fr"] { display: inline; }
html[data-lang-current="en"] [data-lang="en"] { display: inline; }

h1 [data-lang], h2 [data-lang], h3 [data-lang], p [data-lang] {
  display: none;
}
html[data-lang-current="fr"] h1 [data-lang="fr"],
html[data-lang-current="fr"] h2 [data-lang="fr"],
html[data-lang-current="fr"] h3 [data-lang="fr"],
html[data-lang-current="fr"] p [data-lang="fr"] { display: inline; }
html[data-lang-current="en"] h1 [data-lang="en"],
html[data-lang-current="en"] h2 [data-lang="en"],
html[data-lang-current="en"] h3 [data-lang="en"],
html[data-lang-current="en"] p [data-lang="en"] { display: inline; }

/* Soft crossfade when the language is switched (class is added by script.js for a moment; opacity only) */
@keyframes lang-fade { from { opacity: 0; } }
html.lang-switching [data-lang] { animation: lang-fade 0.35s ease; }

/* --- Scroll-reveal --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--mustard);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 0.4rem 1.5rem;
}

.logo { position: relative; z-index: 2; }
.logo img { height: 56px; transition: height 0.3s ease; border-radius: 50%; }
.site-header.scrolled .logo img { height: 42px; }

.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { text-decoration: none; font-weight: 800; color: var(--primary); position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  transform: scaleX(0); transition: transform 0.25s ease; border-radius: 2px;
}
.site-nav a:nth-of-type(1)::after { background: var(--secondary); }
.site-nav a:nth-of-type(2)::after { background: var(--forest); }
.site-nav a:nth-of-type(3)::after { background: var(--orange); }
.site-nav a:nth-of-type(4)::after { background: var(--mustard); }
.site-nav a:nth-of-type(5)::after { background: var(--rose); }
.site-nav a:focus-visible::after, .site-nav a:active::after { transform: scaleX(1); }
@media (hover: hover) {
  .site-nav a:hover::after { transform: scaleX(1); }
}

/* Panel-only pieces (language row + squiggle), hidden on the desktop bar */
.nav-lang, .nav-squiggle { display: none; }

.lang-toggle {
  border: 2px solid var(--secondary);
  background: none;
  color: var(--secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) {
  .lang-toggle:hover { background: var(--secondary); color: #fff; transform: scale(1.06); }
}
.lang-toggle:active { background: var(--secondary); color: #fff; transform: scale(0.92); transition-duration: 0.08s; }
@keyframes wiggle {
  0% { transform: rotate(0); }
  30% { transform: rotate(-9deg) scale(1.06); }
  60% { transform: rotate(6deg); }
  100% { transform: rotate(0); }
}
.lang-toggle.is-wiggling { animation: wiggle 0.45s var(--ease-out); }

/* --- Hamburger toggle (shown below 900px) --- */
.nav-toggle {
  display: none;
  position: relative; z-index: 2;
  width: 48px; height: 48px; margin-right: -0.5rem; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars { position: relative; display: block; width: 26px; height: 18px; margin: 0 auto; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 3px; border-radius: 3px;
  background: var(--primary);
  transition: top 0.25s var(--ease-out), transform 0.4s var(--ease-pop), opacity 0.2s ease,
              width 0.25s var(--ease-out), background-color 0.25s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 7.5px; left: auto; right: 0; width: 68%; }
.nav-toggle-bars span:nth-child(3) { top: 15px; }
@media (hover: hover) {
  .nav-toggle:hover .nav-toggle-bars span:nth-child(2) { width: 100%; }
}
.nav-toggle:active { transform: scale(0.88); background: rgba(45, 95, 90, 0.08); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { background: var(--secondary); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 7.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { width: 100%; opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 7.5px; transform: rotate(-45deg); }

/* --- Hero carousel --- */
.hero {
  min-height: 88vh; /* fallback */
  min-height: 88dvh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,20,18,0.75), rgba(45,95,90,0.25) 60%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 3rem 1.5rem 4rem; max-width: 720px; }
.hero-content h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.1; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-sub { font-size: 1.2rem; font-weight: 600; }
.hero-keywords { font-size: 0.95rem; color: rgba(255,255,255,0.82); max-width: 46ch; margin-top: 0.5rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

/* Hero text settles in line by line on load */
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
.hero-content > * { animation: rise-in 0.9s var(--ease-out) backwards; }
.hero-content > :nth-child(2) { animation-delay: 0.15s; }
.hero-content > :nth-child(3) { animation-delay: 0.3s; }
.hero-content > :nth-child(4) { animation-delay: 0.45s; }

.hero-dots {
  position: absolute; z-index: 2; bottom: 1.4rem; right: 1.5rem;
  display: flex; gap: 14px;
}
.hero-dots button {
  position: relative;
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; padding: 0; cursor: pointer; opacity: 0.7;
  transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, transform 0.35s var(--ease-pop);
}
/* Visual dot stays small, tap zone is 44px tall and as wide as the dot spacing (24px),
   so neighbouring zones never overlap and a tap always lands on the dot you meant */
.hero-dots button::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 24px; height: 44px; transform: translate(-50%, -50%);
}
.hero-dots button.is-active { background: var(--secondary); border-color: var(--secondary); opacity: 1; transform: scale(1.2); }
.hero-dots button:active { transform: scale(0.8); }

.scroll-cue {
  position: absolute; bottom: 1.5rem; left: 50%; z-index: 2;
  width: 24px; height: 24px; border-right: 3px solid #fff; border-bottom: 3px solid #fff;
  transform: translateX(-50%) rotate(45deg);
  animation: bounce 1.8s infinite;
  opacity: 0.9;
}
@keyframes bounce {
  0%, 100% { margin-top: 0; }
  50% { margin-top: 10px; }
}

.cta-button, .contact-button {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 800;
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cta-ghost { background: transparent; border: 2px solid #fff; }
.cta-bold { font-size: 1.15rem; padding: 1rem 2rem; }
.cta-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
@media (hover: hover) {
  .cta-button:hover, .contact-button:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 20px rgba(0,0,0,0.22); background: #d43a48; }
  .cta-ghost:hover { background: rgba(255,255,255,0.15); }
  .cta-outline:hover { background: var(--primary); color: #fff; }
}
/* Press: the button sinks under the finger */
.cta-button:active, .contact-button:active {
  transform: translateY(1px) scale(0.96); box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  background: #d43a48; transition-duration: 0.08s;
}
.cta-ghost:active { background: rgba(255,255,255,0.22); }
.cta-outline:active { background: var(--primary); color: #fff; }

/* --- Bio strip (Instagram-bio energy) --- */
.bio-strip {
  display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; align-items: center;
  padding: 2rem 1.5rem; max-width: 1100px; margin: 0 auto;
}
.bio-strip.reveal { opacity: 1; transform: none; } /* the chips carry the entrance instead */
.bio-chip {
  font-family: var(--font-tag);
  font-size: 0.95rem;
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.12);
  line-height: 1.3;
  text-decoration: none;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s var(--ease-pop), box-shadow 0.2s ease;
}
.bio-chip:nth-child(1) { --tilt: -2deg; --i: 0; }
.bio-chip:nth-child(2) { --tilt: 1.5deg; --i: 1; }
.bio-chip:nth-child(3) { --tilt: -1deg; --i: 2; }
.bio-chip:nth-child(4) { --tilt: 1deg; --i: 3; }
.bio-chip:nth-child(5) { --tilt: -1.5deg; --i: 4; }
.bio-chip:nth-child(6) { --tilt: 1.2deg; --i: 5; }
.bio-chip:nth-child(7) { --tilt: -1deg; --i: 6; }
@media (hover: hover) {
  .bio-chip:hover { transform: translateY(-3px) rotate(0deg); box-shadow: 0 7px 0 rgba(0,0,0,0.12); }
}
.bio-chip:active { transform: translateY(2px) rotate(0deg) scale(0.97); box-shadow: 0 1px 0 rgba(0,0,0,0.12); transition-duration: 0.1s; }
/* Chips land one after another like stickers slapped on, each settling into its own tilt */
@keyframes chip-slap {
  from { opacity: 0; transform: translateY(-12px) rotate(calc(var(--tilt, 0deg) * 4)) scale(1.15); }
}
.bio-strip:not(.is-visible) .bio-chip { opacity: 0; }
.bio-strip.is-visible .bio-chip { animation: chip-slap 0.6s var(--ease-pop) backwards; animation-delay: calc(var(--i, 0) * 85ms); }
.chip-coral { background: var(--secondary); }
.chip-teal { background: var(--primary); }
.chip-mustard { background: var(--mustard); color: var(--text); }
.chip-orange { background: var(--orange); }
.chip-forest { background: var(--forest); }                     /* white text: 5.0:1, passes AA */
.chip-sage { background: var(--sage); color: var(--text); }      /* white fails (2.7:1), dark text 5.7:1 */
.chip-rose { background: var(--rose); color: var(--text); font-weight: 700; }
.chip-link { cursor: pointer; }

/* --- Section dividers: the wavy line draws itself in when scrolled into view --- */
.divider { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.divider.reveal { transform: none; transition: opacity 0.3s ease; }
.divider svg { width: 100%; height: 22px; }
.divider path {
  fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease-out) 0.1s;
}
.divider.is-visible path { stroke-dashoffset: 0; }
.divider-flip svg { transform: scaleY(-1); }
.divider-teal path { stroke: var(--forest); }
.divider-orange path { stroke: var(--orange); }

.location, .ambiance {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Minimal menu: heading + FR/EN choice, nothing else (client wants fast access, no listing) --- */
.menu-minimal {
  padding: 4rem 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.menu-minimal p { color: var(--muted); }
.menu-choice { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* --- Story / history section: long-form real narrative, editorial layout --- */
.story {
  max-width: 920px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.story-inner {
  background: linear-gradient(160deg, var(--bg-sage-tint), var(--bg-blush-tint));
  border-radius: 20px;
  padding: 2.5rem;
  border-top: 6px solid var(--secondary);
  border-bottom: 6px solid var(--mustard);
}
.story-header { text-align: center; margin-bottom: 2rem; }
/* The whole interior photo as a tilted polaroid (thick white bottom edge), not a cropped strip */
.story-polaroid {
  display: block; width: min(64%, 250px); height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  margin: 0.5rem auto 1.75rem;
  border: 9px solid #fff; border-bottom-width: 36px; border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.16), 0 2px 4px rgba(0,0,0,0.06);
  transform: rotate(-2.5deg);
  transition: transform 0.35s var(--ease-pop);
}
@media (hover: hover) {
  .story-polaroid:hover { transform: rotate(0deg) scale(1.02); }
}
.story-header h2 { position: relative; display: inline-block; padding-bottom: 0.6rem; }
.story-header h2::after {
  content: ""; display: block; width: 90px; height: 4px; margin: 0.5rem auto 0;
  background: var(--orange); border-radius: 2px;
}
.story-text { max-width: 68ch; margin: 0 auto; }
.story-text p { margin: 0 0 1.3rem; line-height: 1.8; }
.story-chapter:first-child p:first-of-type::first-letter {
  font-family: var(--font-heading); font-size: 3.2rem; color: var(--secondary);
  float: left; line-height: 0.8; padding: 0.15rem 0.5rem 0 0;
}
.story-signature {
  text-align: center; font-family: var(--font-heading); font-size: 1.9rem;
  color: var(--secondary); margin-top: 1.5rem !important;
}

/* Story chapter carousel. Without JS the chapters simply stack (controls stay hidden). */
.story-controls { display: none; }
.story-carousel.is-ready .story-viewport {
  overflow: hidden; touch-action: pan-y; border-radius: 6px;
  transition: height 0.45s var(--ease-out);
}
.story-viewport:focus-visible { outline: 3px solid var(--mustard); outline-offset: 6px; }
.story-carousel.is-ready .story-track {
  display: flex; align-items: flex-start; gap: 2rem;
  transition: transform 0.55s var(--ease-out);
}
.story-carousel.is-ready .story-track.is-dragging { transition: none; }
.story-carousel.is-ready .story-chapter { flex: 0 0 100%; min-width: 0; opacity: 0.25; transition: opacity 0.5s ease; }
.story-carousel.is-ready .story-chapter.is-active { opacity: 1; }
.story-chapter > :last-child { margin-bottom: 0; }
/* One-time nudge on touch screens so it's obvious the story swipes */
@keyframes story-nudge {
  0%, 100% { translate: 0 0; }
  40% { translate: -22px 0; }
  70% { translate: 5px 0; }
}
.story-track.hint { animation: story-nudge 0.9s var(--ease-out); }

.story-carousel.is-ready .story-controls {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 340px; margin: 1.75rem auto 0;
}
/* Round prev/next buttons, shared by the story and gallery carousels */
.round-arrow {
  position: relative; flex: 0 0 auto;
  width: 42px; height: 42px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--primary); background: #fff; color: var(--primary); cursor: pointer;
  transition: transform 0.25s var(--ease-pop), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.25s ease;
}
.round-arrow::before { content: ""; position: absolute; inset: -3px; } /* 48px tap zone */
.round-arrow svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease-out);
}
.round-arrow-next { background: var(--secondary); border-color: var(--secondary); color: #fff; }
@media (hover: hover) {
  .round-arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
  .round-arrow-next:hover { background: #d43a48; border-color: #d43a48; }
  .round-arrow:not(.round-arrow-next):hover svg { transform: translateX(-2px); }
  .round-arrow-next:hover svg { transform: translateX(2px); }
}
.round-arrow:active { transform: scale(0.88); transition-duration: 0.08s; }
.round-arrow[aria-disabled="true"] { opacity: 0.3; cursor: default; pointer-events: none; }
.round-arrow:focus-visible, .story-dot:focus-visible { outline: 3px solid var(--mustard); outline-offset: 4px; }

.story-dots { display: flex; align-items: center; gap: 32px; }
.story-dot {
  position: relative; width: 12px; height: 12px; padding: 0; border-radius: 50%;
  border: 2px solid var(--muted); background: transparent; cursor: pointer;
  transition: transform 0.45s var(--ease-pop), background-color 0.35s ease, border-color 0.35s ease;
}
/* Visual dot stays small, tap zone is a full 44px (same technique as the hero dots) */
.story-dot::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}
/* Each chapter dot gets its own palette colour, same idea as the nav underlines */
.story-dot:nth-child(1) { --dot: var(--secondary); }
.story-dot:nth-child(2) { --dot: var(--forest); }
.story-dot:nth-child(3) { --dot: var(--orange); }
.story-dot:nth-child(4) { --dot: var(--mustard); }
.story-dot:nth-child(5) { --dot: var(--rose); }
.story-dot.is-active { background: var(--dot); border-color: var(--dot); transform: scale(1.45); }
@media (hover: hover) {
  .story-dot:hover { border-color: var(--dot); }
}
.story-dot:active { transform: scale(0.8); transition-duration: 0.1s; }
.story-dot.is-active:active { transform: scale(1.25); }

/* --- Gallery: a swipeable strip of polaroids (native scroll-snap), edge to edge on phones --- */
.ambiance-track {
  display: flex; gap: 1.1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 1.5rem;
  margin: 0.5rem -1.5rem 0; padding: 1rem 1.5rem 1.4rem; /* room for tilt + lift, and bleed to the screen edge */
  scrollbar-width: none;
}
.ambiance-track::-webkit-scrollbar { display: none; }
.ambiance-track:focus-visible { outline: 3px solid var(--mustard); outline-offset: -3px; border-radius: 12px; }
.ambiance-item {
  flex: 0 0 clamp(150px, 40vw, 225px); margin: 0; cursor: pointer;
  scroll-snap-align: start;
  background: #fff; padding: 7px 7px 0; border-radius: 5px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.11), 0 1px 3px rgba(0,0,0,0.06);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.3s var(--ease-pop), box-shadow 0.3s ease;
}
.ambiance-item:nth-child(3n+1) { --tilt: -1.3deg; }
.ambiance-item:nth-child(3n+2) { --tilt: 1deg; }
.ambiance-item:nth-child(3n) { --tilt: -0.4deg; }
.ambiance-item img { width: 100%; height: auto; border-radius: 2px; aspect-ratio: 3/4; object-fit: cover; }
.ambiance-item figcaption {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; line-height: 1.1;
  color: var(--primary); text-align: center;
  min-height: 3.1rem; display: flex; align-items: center; justify-content: center; padding: 0.3rem 0.2rem 0.45rem;
}
@media (hover: hover) {
  .ambiance-item:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 14px 26px rgba(0,0,0,0.16); }
}
.ambiance-item:active { transform: rotate(0deg) scale(0.97); transition-duration: 0.1s; }
/* When the section scrolls in, the first photos are dealt onto the table one by one */
@keyframes polaroid-drop {
  from { opacity: 0; transform: translateY(-16px) rotate(calc(var(--tilt, 0deg) * 4)) scale(1.06); }
}
.ambiance-item:nth-child(1) { --i: 0; }
.ambiance-item:nth-child(2) { --i: 1; }
.ambiance-item:nth-child(3) { --i: 2; }
.ambiance-item:nth-child(4) { --i: 3; }
.ambiance-item:nth-child(5) { --i: 4; }
.ambiance-item:nth-child(n+6) { --i: 5; }
.ambiance.is-visible .ambiance-item { animation: polaroid-drop 0.6s var(--ease-pop) backwards; animation-delay: calc(0.15s + var(--i, 0) * 90ms); }

.gallery-controls { display: none; }
.gallery-carousel.is-ready .gallery-controls {
  display: flex; align-items: center; gap: 1rem; max-width: 420px; margin: 0.4rem auto 0;
}
/* Progress line in the footer's palette gradient, shows where you are in the strip */
.gallery-progress { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(45,95,90,0.12); overflow: hidden; }
.gallery-progress span {
  position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--mustard), var(--orange), var(--forest));
  transition: transform 0.15s linear;
}

/* --- Reservation (bold color block) --- */
.reservation {
  background: var(--primary);
  color: var(--text-on-dark);
  text-align: center;
  padding: 4.5rem 1.5rem;
  border-top: 6px solid var(--mustard);
  border-bottom: 6px solid var(--orange);
}
.reservation h2 { color: #fff; }
.reservation-details { margin-top: 1.25rem; color: rgba(250,248,245,0.85); }

/* --- Instagram / community --- */
.instagram-section {
  background: var(--bg-blush-tint);
  text-align: center;
  padding: 4rem 1.5rem;
}
.instagram-section p { max-width: 50ch; margin: 0 auto 1rem; }
/* Follower counts: two tilted "sticker" cards, numbers count up when the section scrolls in */
.follower-stats { display: flex; justify-content: center; gap: 1.25rem; margin: 1.25rem auto 1.75rem; }
.follower-stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  flex: 0 1 210px; min-width: 0; padding: 0.9rem 1.1rem 0.85rem;
  background: #fff; border-radius: 18px; border-top: 5px solid var(--stat);
  color: var(--text); text-decoration: none;
  box-shadow: 0 5px 0 rgba(0,0,0,0.08);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s var(--ease-pop), box-shadow 0.2s ease;
}
.stat-instagram { --tilt: -2deg; --stat: var(--secondary); }
.stat-facebook { --tilt: 1.5deg; --stat: var(--primary); }
.stat-number { font-family: var(--font-tag); font-size: 2.6rem; line-height: 1.05; color: var(--stat); }
.stat-label { margin-top: 0.3rem; font-weight: 800; font-size: 0.9rem; line-height: 1.3; color: var(--primary); }
@media (hover: hover) {
  .follower-stat:hover { transform: translateY(-4px) rotate(0deg); box-shadow: 0 9px 0 rgba(0,0,0,0.08); }
}
.follower-stat:active { transform: translateY(2px) rotate(0deg) scale(0.97); box-shadow: 0 2px 0 rgba(0,0,0,0.08); transition-duration: 0.1s; }

.social-icons { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.social-icons a {
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease, background 0.2s ease;
}
@media (hover: hover) {
  .social-icons a:hover { transform: translateY(-3px) rotate(-8deg); background: var(--secondary); }
}
.social-icons a:active { transform: scale(0.88) rotate(-8deg); background: var(--secondary); transition-duration: 0.08s; }
.social-icons svg { width: 22px; height: 22px; fill: currentColor; }

/* Storefront photo shown whole (no crop). CLS protection: aspect-ratio + width/height attributes
   reserve the box before it loads (ratio matches the source file). */
.location-photo {
  width: 100%; height: auto; aspect-ratio: 1200 / 804; object-fit: cover;
  margin: 0 0 1.25rem;
  border-radius: 14px;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.contact-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0; }
.social-links { display: flex; gap: 1rem; }
.social-links a:active { opacity: 0.6; }
.location-map iframe { width: 100%; height: 100%; min-height: 300px; border-radius: 12px; border: 0; }
.address, .hours { color: var(--muted); }

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-on-dark);
  background: var(--primary);
  font-size: 0.9rem;
  border-top: 8px solid;
  border-image: linear-gradient(90deg, var(--secondary), var(--mustard), var(--orange), var(--forest)) 1;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; background: rgba(20,16,14,0.92); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none;
  color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer;
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.94); } }
.lightbox:not([hidden]) { animation: fade-in 0.25s ease; }
.lightbox:not([hidden]) img { animation: pop-in 0.4s var(--ease-pop); }

/* --- Mobile sticky CTA --- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: none;
  background: var(--primary);
  border-top: 3px solid var(--mustard);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta a {
  flex: 1; text-align: center; padding: 0.9rem 0; color: #fff; text-decoration: none; font-weight: 800;
  transition: background-color 0.15s ease;
}
.mobile-cta a:first-child { border-right: 1px solid rgba(255,255,255,0.25); }
.mobile-cta a:active { background: rgba(255,255,255,0.14); }

/* --- Tablet & phone (single breakpoint, shared with the hamburger nav) --- */
@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .story { padding: 2.5rem 1rem; }
  .story-inner { padding: 1.5rem; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 54px; }

  /* Header bar: logo left, hamburger right. The language toggle moves into the panel. */
  .lang-toggle { display: none; }
  .nav-toggle { display: block; }

  /* Hamburger panel: full screen, slides in from the right */
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; gap: 0.15rem;
    padding: 5.75rem 1.75rem 2.5rem;
    background: linear-gradient(165deg, var(--bg) 35%, var(--bg-blush-tint));
    border-left: 6px solid var(--secondary);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
  }
  .site-nav.is-open {
    transform: none; visibility: visible;
    box-shadow: -12px 0 40px rgba(0,0,0,0.12);
    transition: transform 0.45s var(--ease-out), visibility 0s;
  }

  /* Language row, pinned at the top of the panel (not a nav link) */
  .nav-lang { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
  .nav-lang-label { font-family: var(--font-tag); color: var(--muted); font-size: 1rem; }
  .nav-lang-switch {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px;
    border: 2px solid var(--secondary); border-radius: 999px;
  }
  /* The coral pill slides to whichever language is active */
  .nav-lang-switch::before {
    content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px;
    width: calc((100% - 8px) / 2); border-radius: 999px; background: var(--secondary);
    transition: transform 0.4s var(--ease-pop);
  }
  html[data-lang-current="en"] .nav-lang-switch::before { transform: translateX(calc(100% + 2px)); }
  .nav-lang-switch button {
    position: relative; z-index: 1; min-width: 58px; min-height: 44px; padding: 0 0.9rem;
    border: 0; border-radius: 999px; background: transparent; cursor: pointer;
    font-family: var(--font-body); font-weight: 800; font-size: 1rem; color: var(--secondary);
    transition: color 0.25s ease, transform 0.2s ease;
  }
  .nav-lang-switch button[aria-pressed="true"] { color: #fff; }
  .nav-lang-switch button:active { transform: scale(0.92); }
  .nav-squiggle { display: block; width: 100%; height: 18px; margin: 0.9rem 0 0.9rem; }
  .nav-squiggle path { fill: none; stroke: var(--mustard); stroke-width: 3; stroke-linecap: round; }

  /* Big handwritten links, each with its own slight tilt */
  .site-nav a {
    display: inline-block; min-height: 44px; padding: 0.4rem 0.3rem;
    font-family: var(--font-heading); font-size: 2.3rem; font-weight: 700; line-height: 1.15;
    transform: rotate(var(--tilt, 0deg));
    transition: transform 0.2s var(--ease-pop);
  }
  .site-nav a:nth-of-type(odd) { --tilt: -1.2deg; }
  .site-nav a:nth-of-type(even) { --tilt: 1deg; }
  .site-nav a:nth-of-type(1) { --i: 0; }
  .site-nav a:nth-of-type(2) { --i: 1; }
  .site-nav a:nth-of-type(3) { --i: 2; }
  .site-nav a:nth-of-type(4) { --i: 3; }
  .site-nav a:nth-of-type(5) { --i: 4; }
  .site-nav a::after { bottom: 6px; height: 4px; }
  .site-nav a:active { transform: rotate(0deg) scale(0.96); }
  @keyframes nav-link-in { from { opacity: 0; transform: translateX(32px) rotate(var(--tilt, 0deg)); } }
  .site-nav.is-open a { animation: nav-link-in 0.5s var(--ease-pop) backwards; animation-delay: calc(0.12s + var(--i, 0) * 55ms); }
  .site-nav.is-open .nav-lang { animation: fade-in 0.4s ease 0.08s backwards; }
}

@media (max-width: 380px) {
  .story-dots { gap: 24px; }
}

/* --- Reduced motion: keep every state change, drop the movement --- */
@media (prefers-reduced-motion: reduce) {
  html.lang-switching [data-lang] { animation: none; }
  .hero-content > * { animation: none; }
  .bio-strip:not(.is-visible) .bio-chip, .bio-strip .bio-chip { opacity: 1; animation: none; }
  .divider path { stroke-dashoffset: 0; transition: none; }
  .lang-toggle.is-wiggling { animation: none; }
  .site-nav, .site-nav.is-open, .nav-toggle-bars span, .nav-lang-switch::before { transition: none; }
  .site-nav.is-open a, .site-nav.is-open .nav-lang { animation: none; }
  .story-carousel.is-ready .story-viewport, .story-carousel.is-ready .story-track,
  .story-carousel.is-ready .story-chapter, .story-dot { transition: none; }
  .story-track.hint { animation: none; }
  .ambiance.is-visible .ambiance-item { animation: none; }
  .story-polaroid, .ambiance-item { transition: none; }
  .lightbox:not([hidden]), .lightbox:not([hidden]) img { animation: none; }
}
