/* ---------- Tefi Nail Art — base styles ---------- */
:root {
  /* Botanical (default) */
  --cream: #F1E9D6;
  --bone: #E2D8BE;
  --sage: #8B9D7F;
  --sage-deep: #4D5C45;
  --clay: #C97456;
  --clay-deep: #9F543A;
  --ink: #2A241B;
  --ink-soft: #5A4F3F;
  --accent: var(--clay);
  --accent-deep: var(--clay-deep);
  --label-color: var(--sage-deep);

  /* Display + body fonts (overridable per direction) */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Caveat', cursive;
}

/* Direction: blush-chrome — soft pink, pearly, mirrored */
.dir-blush {
  --cream: #F4ECE6;
  --bone: #E8D8D2;
  --sage: #C9B8C9;          /* dusty mauve */
  --sage-deep: #6B5468;
  --clay: #D49AA0;          /* blush */
  --clay-deep: #9C5E66;
  --ink: #2A2128;
  --ink-soft: #5C4D54;
  --accent: var(--clay);
  --accent-deep: var(--clay-deep);
  --label-color: var(--sage-deep);
}

/* Direction: ink — dark editorial, neon-edge */
.dir-ink {
  --cream: #15130F;
  --bone: #1F1B16;
  --sage: #3B4A37;
  --sage-deep: #B5C4AC;
  --clay: #E8B6A0;
  --clay-deep: #F4D4BE;
  --ink: #F2EADD;
  --ink-soft: #B4A99A;
  --accent: var(--clay);
  --accent-deep: var(--clay-deep);
  --label-color: var(--sage-deep);
}

/* Direction: lilac — matches the Tefi logo (lilac brand) */
.dir-lilac {
  --cream: #F6F1F7;
  --bone: #E8DEEC;
  --sage: #C7B0D6;          /* lilac mid */
  --sage-deep: #6E4F84;
  --clay: #C58CE0;          /* signature lilac */
  --clay-deep: #8A4BB0;
  --ink: #1F1828;
  --ink-soft: #5A4E66;
  --accent: var(--clay);
  --accent-deep: var(--clay-deep);
  --label-color: var(--sage-deep);
}

/* Direction: porcelain — milky, near-white, cool minimal */
.dir-porcelain {
  --cream: #F4F2EE;
  --bone: #E5E1D9;
  --sage: #B8C2C0;          /* dove */
  --sage-deep: #5C6967;
  --clay: #C0A595;          /* warm taupe */
  --clay-deep: #806454;
  --ink: #1C1C1C;
  --ink-soft: #5A5854;
  --accent: var(--clay);
  --accent-deep: var(--clay-deep);
  --label-color: var(--sage-deep);
}

/* Direction: terracotta — sunbaked, warm clay & cream */
.dir-terracotta {
  --cream: #F5E7D6;
  --bone: #E5CDB4;
  --sage: #B5876A;          /* sand */
  --sage-deep: #7E4F35;
  --clay: #C24B27;          /* terracotta */
  --clay-deep: #862E14;
  --ink: #2B1A10;
  --ink-soft: #6B4A36;
  --accent: var(--clay);
  --accent-deep: var(--clay-deep);
  --label-color: var(--sage-deep);
}

/* Direction: jade — emerald studio, soft & rich */
.dir-jade {
  --cream: #F1EEDF;
  --bone: #DCD8C4;
  --sage: #4F7C6A;          /* jade */
  --sage-deep: #1F4438;
  --clay: #C58A5C;          /* honey */
  --clay-deep: #8E5A30;
  --ink: #1A2520;
  --ink-soft: #4D5C55;
  --accent: var(--clay);
  --accent-deep: var(--clay-deep);
  --label-color: var(--sage-deep);
}

/* Direction: midnight-lilac — dark mode with the lilac brand colour */
.dir-midnight {
  --cream: #15131A;
  --bone: #1F1B26;
  --sage: #3B2F46;
  --sage-deep: #C9B0DC;
  --clay: #D9A8F0;          /* glowing lilac */
  --clay-deep: #EFD1FF;
  --ink: #F2EAF5;
  --ink-soft: #B0A2BA;
  --accent: var(--clay);
  --accent-deep: var(--clay-deep);
  --label-color: var(--sage-deep);
}

/* Direction: butter — soft buttery yellow & olive */
.dir-butter {
  --cream: #F6EFD5;
  --bone: #E8DDB0;
  --sage: #9CA66B;          /* olive */
  --sage-deep: #4F5A2A;
  --clay: #D89A4A;          /* amber */
  --clay-deep: #9C661F;
  --ink: #2A2410;
  --ink-soft: #5E5430;
  --accent: var(--clay);
  --accent-deep: var(--clay-deep);
  --label-color: var(--sage-deep);
}

html, body { background: var(--cream); margin: 0; }
html {
  /* Smooth in-page anchor scrolling, with room reserved for the fixed nav. */
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Stop horizontal scroll-chaining from triggering a back-swipe on iOS. */
  overscroll-behavior-y: none;
}

/* Skip link — visible only on keyboard focus, lets keyboard users jump past the nav. */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s ease-out;
}
.skip-link:focus { top: 16px; }

/* Visible focus ring for keyboard users only. Hidden for mouse clicks. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible { outline-offset: 4px; }

/* Don't focus-ring the <main> wrapper — it's only there as a skip-link target. */
main:focus { outline: none; }
main:focus-visible { outline: none; }

.font-display { font-family: var(--font-display); font-feature-settings: 'ss01' on; }
.font-body { font-family: var(--font-body); }
.font-script { font-family: var(--font-script); }

/* Type scale */
.hero-h1 { font-size: clamp(4rem, 13vw, 11rem); line-height: 0.88; letter-spacing: -0.04em; font-weight: 400; }
.section-h { font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: 0.95; letter-spacing: -0.03em; font-weight: 400; }
.cta-h { font-size: clamp(3.25rem, 9.5vw, 8rem); line-height: 0.9; letter-spacing: -0.04em; font-weight: 400; }
.label-tiny { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }

/* Layout helpers */
.layout-asymmetric .hero-italic { padding-left: 12% !important; }
.layout-centered .hero-block { text-align: center; padding-left: 0 !important; }
.layout-centered .hero-italic { padding-left: 0 !important; }
.layout-stack .hero-italic { padding-left: 0 !important; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1), transform 1.2s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Hover line */
.hover-line { position: relative; display: inline-block; }
.hover-line::after {
  content: ''; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0%; background: currentColor;
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}
.hover-line:hover::after { width: 100%; }

/* Service rows */
.service-row { transition: padding-left 0.6s cubic-bezier(0.16,1,0.3,1); cursor: pointer; }
.service-row:hover { padding-left: 1rem; }
.service-row:hover .service-arrow { transform: translateX(8px); opacity: 1; }
.service-row:hover .service-name { color: var(--accent-deep); }
.service-arrow { transition: all 0.6s cubic-bezier(0.16,1,0.3,1); opacity: 0; }
.service-name { transition: color 0.4s; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.gallery-item { overflow: hidden; position: relative; border-radius: 2px; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.16,1,0.3,1), filter 0.6s ease;
  filter: var(--photo-filter, sepia(0.12) saturate(0.9) brightness(0.97));
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .label { transition: opacity 0.5s; opacity: 0; }
.gallery-item:hover .label { opacity: 1; }
@media (min-width: 768px) {
  .gallery-item.span-2-2 { grid-column: span 2; grid-row: span 2; }
  .gallery-item.span-2-1 { grid-column: span 2; }
}

/* Layout: editorial offset gallery */
.gallery-editorial { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; grid-auto-rows: 60px; }
@media (max-width: 767px) { .gallery-editorial { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; } }
.gallery-editorial .gallery-item { grid-column: span 6; grid-row: span 5; }
@media (min-width: 768px) {
  .gallery-editorial .e-1 { grid-column: 1 / span 5; grid-row: 1 / span 8; }
  .gallery-editorial .e-2 { grid-column: 7 / span 4; grid-row: 2 / span 5; }
  .gallery-editorial .e-3 { grid-column: 11 / span 2; grid-row: 1 / span 4; }
  .gallery-editorial .e-4 { grid-column: 1 / span 4; grid-row: 9 / span 5; }
  .gallery-editorial .e-5 { grid-column: 5 / span 5; grid-row: 7 / span 6; }
  .gallery-editorial .e-6 { grid-column: 10 / span 3; grid-row: 5 / span 6; }
}

/* ---------- Animation styles (controlled by .anim-*) ---------- */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.floaty { animation: float 9s ease-in-out infinite; }
@keyframes float2 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(18px) rotate(-2deg); } }
.floaty2 { animation: float2 11s ease-in-out infinite; }

/* Still — disable shape motion entirely */
.anim-still .floaty,
.anim-still .floaty2 { animation: none !important; }
.anim-still .reveal { transition-duration: 0.6s !important; }

/* Soft is the default — no overrides needed */

/* Lively — faster, larger drift */
@keyframes lively-1 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-30px) rotate(8deg); } }
@keyframes lively-2 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(34px) rotate(-6deg); } }
.anim-lively .floaty  { animation: lively-1 5s ease-in-out infinite; }
.anim-lively .floaty2 { animation: lively-2 6s ease-in-out infinite; }

/* Breathe — pulsing scale */
@keyframes breathe-1 { 0%,100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.12) rotate(2deg); } }
@keyframes breathe-2 { 0%,100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(0.9) rotate(-3deg); } }
.anim-breathe .floaty  { animation: breathe-1 6s ease-in-out infinite; transform-origin: center; }
.anim-breathe .floaty2 { animation: breathe-2 7.5s ease-in-out infinite; transform-origin: center; }

/* Orbit — slow rotation */
@keyframes orbit-1 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-2 { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
.anim-orbit .floaty  { animation: orbit-1 40s linear infinite; transform-origin: center; }
.anim-orbit .floaty2 { animation: orbit-2 55s linear infinite; transform-origin: center; }

/* Spring — bouncy reveal entrance */
.anim-spring .reveal { transition: opacity 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) !important; transform: translateY(60px) scale(0.96); }
.anim-spring .reveal.is-visible { transform: translateY(0) scale(1); }
@keyframes spring-1 { 0%,100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-22px) rotate(4deg); } 50% { transform: translateY(-14px) rotate(2deg); } 70% { transform: translateY(-22px) rotate(4deg); } }
.anim-spring .floaty  { animation: spring-1 4s cubic-bezier(0.5, 1.5, 0.5, 1) infinite; }
.anim-spring .floaty2 { animation: spring-1 5s cubic-bezier(0.5, 1.5, 0.5, 1) infinite reverse; }

/* Service row hover — already animated; spring gives extra push */
.anim-spring .service-row:hover { padding-left: 1.5rem; }
.anim-lively .service-row:hover { padding-left: 1.5rem; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .floaty, .floaty2 { animation: none !important; }
}

/* Selection */
::selection { background: var(--accent); color: var(--cream); }

/* Grain */
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}
.dir-ink .grain { mix-blend-mode: screen; opacity: 0.15; }

/* ---------- Services backgrounds ---------- */
a, button { cursor: pointer; }

/* The inner content sits above the absolutely-positioned background. */
#services > :not(.absolute) { position: relative; z-index: 1; }
#services > .relative { position: relative; z-index: 1; }

/* Text inversion for dark variants */
.services-bg-ink h2, .services-bg-ink h3, .services-bg-ink .service-name,
.services-bg-ink .service-row .font-display { color: var(--cream); }
.services-bg-ink p, .services-bg-ink span { color: color-mix(in srgb, var(--cream) 80%, transparent); }
.services-bg-ink .service-row { border-color: color-mix(in srgb, var(--cream) 18%, transparent) !important; }
.services-bg-ink .service-row:first-child { border-top-color: color-mix(in srgb, var(--cream) 18%, transparent); }
.services-bg-ink .service-row:hover .service-name { color: var(--accent); }

.services-bg-sage h2, .services-bg-sage h3, .services-bg-sage .service-name,
.services-bg-sage .service-row .font-display { color: var(--cream); }
.services-bg-sage p, .services-bg-sage .service-row span { color: color-mix(in srgb, var(--cream) 85%, transparent); }
.services-bg-sage .service-row { border-color: color-mix(in srgb, var(--cream) 24%, transparent) !important; }

/* Logo (transparent PNG, sometimes invert for dark) */
.logo-img { height: var(--logo-size, 38px); width: auto; display: block; transition: height 0.4s cubic-bezier(0.16,1,0.3,1); }
.dir-ink .logo-img,
.dir-midnight .logo-img { filter: brightness(1.6) contrast(0.9); }
.logo-img-large { height: 110px; width: auto; }

/* Booking modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadein 0.3s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--cream);
  color: var(--ink);
  width: 100%; max-width: 720px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* internal scroll lives in .modal-body */
  border-radius: 6px;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
  animation: pop 0.5s cubic-bezier(0.16,1,0.3,1);
}
/* The scrolling viewport. min-height:0 is the magic — without it, a flex child
   with overflow won't actually shrink, and content punches the modal taller. */
.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 200px;
  -webkit-overflow-scrolling: touch;
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: none; } }

.step-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(42,36,27,0.18); transition: all 0.4s; }
.step-dot.active { background: var(--accent); width: 24px; border-radius: 99px; }
.step-dot.done { background: var(--accent-deep); }

.option-tile {
  border: 1px solid rgba(42,36,27,0.15);
  border-radius: 4px;
  padding: 18px 20px;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  background: transparent;
  text-align: left;
  width: 100%;
}
.option-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.option-tile.selected { border-color: var(--accent); background: rgba(201,116,86,0.08); }
.dir-ink .option-tile.selected { background: rgba(232,182,160,0.12); }

.time-pill {
  border: 1px solid rgba(42,36,27,0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  background: transparent;
  color: var(--ink);
  transition: all 0.3s;
  cursor: pointer;
}
.time-pill:hover { border-color: var(--accent); }
.time-pill.selected { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.time-pill[disabled] { opacity: 0.35; cursor: not-allowed; }

.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-display);
  position: relative;
}
.cal-day.dim { opacity: 0.25; cursor: default; pointer-events: none; }
.cal-day.unavail { color: var(--ink-soft); opacity: 0.4; cursor: not-allowed; }
.cal-day.avail:hover { background: rgba(201,116,86,0.12); }
.cal-day.selected { background: var(--ink); color: var(--cream); }
.cal-day.today::after {
  content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.cal-day.selected.today::after { background: var(--cream); }

.input-bare {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(42,36,27,0.25);
  padding: 10px 0;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}
.input-bare:focus { border-color: var(--accent); }
.input-bare::placeholder { color: var(--ink-soft); opacity: 0.6; }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.4s;
}
.btn-primary:hover:not(:disabled) { transform: scale(1.03); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-ghost {
  background: transparent; color: var(--ink-soft); border: none; font-size: 13px;
  padding: 14px 4px;
}
.btn-ghost:hover { color: var(--ink); }

/* Tweaks panel polish (overrides over starter) */
.tefi-tweaks { font-family: var(--font-body); }


/* Top bar.
   Mobile: flex with logo on the left + actions on the right (the centered
   logo from the desktop layout cramps the contact buttons under 768px).
   Desktop ≥768px: 3-col grid with centered logo. */
.nav-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nav-left {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.nav-center .logo-img { display: block; }
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
@media (min-width: 768px) {
  .nav-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
  .nav-left { display: flex; }
  .nav-right { gap: 12px; }
}

/* Quick-contact icon buttons in the nav (Phone + WhatsApp) */
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--ink-soft);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: transparent;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s;
  text-decoration: none;
}
.nav-icon-btn:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-1px);
}
.nav-icon-btn-wa:hover { color: var(--accent-deep); }
.dir-ink .nav-icon-btn,
.dir-midnight .nav-icon-btn { border-color: color-mix(in srgb, var(--cream) 22%, transparent); }

/* Compact lang switcher + slightly tighter contact buttons on phones. */
@media (max-width: 540px) {
  .lang-switcher { font-size: 10px; padding: 2px; }
  .lang-switcher button { padding: 3px 6px; }
  .nav-icon-btn { width: 32px; height: 32px; }
}

/* Language switcher pill */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 999px;
  padding: 3px;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
}
.lang-switcher button {
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: 999px;
  font: inherit;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}
.lang-switcher button:hover { opacity: 0.85; }
.lang-switcher button.active {
  background: var(--ink);
  color: var(--cream);
  opacity: 1;
}
.dir-ink .lang-switcher button.active { background: var(--cream); color: var(--ink); }

/* Service badges */
.badge-popular,
.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-popular {
  background: var(--accent);
  color: var(--cream);
}
.badge-free {
  background: transparent;
  color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent-deep) 55%, transparent);
}
.services-bg-ink .badge-free,
.services-bg-sage .badge-free {
  color: var(--cream);
  border-color: color-mix(in srgb, var(--cream) 50%, transparent);
}
.services-bg-ink .badge-popular,
.services-bg-sage .badge-popular {
  background: var(--accent);
  color: var(--cream);
}


/* Hero ping-pong video background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(var(--hero-sat, 1)) brightness(1.02);
  opacity: 1;
  /* Force GPU compositing for smoother playback */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}
/* Soft cream wash so type stays legible. Vignette at edges, lighter in center. */
.hero-video-tint {
  position: absolute;
  inset: 0;
  opacity: var(--tint-opacity, 1);
  background:
    radial-gradient(ellipse at 30% 40%, transparent 0%, color-mix(in srgb, var(--cream) var(--tint-mid, 55%), transparent) var(--tint-inner, 60%), color-mix(in srgb, var(--cream) var(--tint-edge, 100%), transparent) 100%),
    linear-gradient(to bottom, color-mix(in srgb, var(--cream) var(--tint-top, 25%), transparent) 0%, transparent 30%, color-mix(in srgb, var(--cream) var(--tint-bottom, 70%), transparent) 100%);
  pointer-events: none;
}
/* Make sure hero content sits above the video */
section.relative > .max-w-7xl { position: relative; z-index: 1; }

/* Dark direction: invert the wash so video stays visible against ink */
.dir-ink .hero-video {
  mix-blend-mode: screen;
  opacity: 0.7;
  filter: saturate(0.9) brightness(0.95);
}
.dir-ink .hero-video-tint {
  background:
    radial-gradient(ellipse at 30% 40%, transparent 0%, color-mix(in srgb, var(--ink) 50%, transparent) 60%, var(--ink) 100%),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 30%, transparent) 0%, transparent 30%, color-mix(in srgb, var(--ink) 70%, transparent) 100%);
}

/* ---------- Soft paper grain (warmer than the SVG turbulence)
   Used on darker accent blocks where the cream texture would otherwise feel digital. */
.paper-grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
  opacity: 0.5;
}
.dir-ink .paper-grain,
.dir-midnight .paper-grain { mix-blend-mode: soft-light; opacity: 0.35; }

/* ---------- Hand-written eyebrow (replaces the tracked-out caps for personal sections) */
.eyebrow-script {
  font-family: var(--font-script);
  font-size: 1.55rem;
  letter-spacing: 0.005em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  transform: rotate(-1.2deg);
  transform-origin: left center;
}
.eyebrow-script::before {
  content: '';
  display: inline-block;
  width: 1.3em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  transform: translateY(-0.35em);
}

/* ---------- Portrait frame in About: deckled photo with a real letterpress stamp */
.portrait-frame {
  border-radius: 2px;
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--ink) 18%, transparent),
    0 30px 40px -30px color-mix(in srgb, var(--ink) 35%, transparent);
  outline: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  overflow: visible;
}
.portrait-frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait-stamp {
  position: absolute;
  top: -14px; right: -14px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--accent-deep);
  padding: 6px 12px;
  border-radius: 999px;
  transform: rotate(6deg);
  box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--ink) 60%, transparent);
  white-space: nowrap;
}

/* ---------- Atelier card (replaces "05 / 1:1 / NL" stat block) */
.atelier-card {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px) clamp(22px, 2.8vw, 38px);
  background: color-mix(in srgb, var(--cream) 55%, var(--bone) 45%);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 2px;
  /* Slightly rotated to feel pinned, not snapped to the grid */
  transform: rotate(-0.25deg);
  box-shadow:
    -1px 1px 0 color-mix(in srgb, var(--ink) 10%, transparent),
    0 24px 40px -28px color-mix(in srgb, var(--ink) 35%, transparent);
}
.atelier-card::before {
  /* a small ceramic plate / pin in the top-right */
  content: '';
  position: absolute;
  top: -10px; right: 28px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent-deep) 70%, transparent);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--ink) 25%, transparent);
}
.atelier-card-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.atelier-card-eyebrow { font-weight: 500; }
.atelier-card-rule { flex: 1; height: 1px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.atelier-card-num {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  text-transform: none;
}
.atelier-card-title {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--ink);
}
.atelier-card-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 22px;
  row-gap: 8px;
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.45;
}
.atelier-card-list dt {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-deep);
  white-space: nowrap;
}
.atelier-card-list dd {
  margin: 0;
  color: var(--ink-soft);
}
.atelier-card-foot {
  display: flex; align-items: baseline; gap: 14px;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--ink) 18%, transparent);
}
.atelier-sign {
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1;
  color: var(--accent-deep);
  transform: translateY(2px) rotate(-2deg);
  transform-origin: left center;
}
.atelier-sign-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Services category header — typographic only */
.cat-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: clamp(10px, 1.4vw, 18px);
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid currentColor;
  border-color: rgba(42, 36, 27, 0.18);
}
.cat-head-name {
  letter-spacing: -0.015em;
  margin: 0;
}
.cat-head-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.005em;
  text-transform: none;
  position: relative;
  padding-left: 14px;
}
.cat-head-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 1px;
  background: color-mix(in srgb, var(--ink) 35%, transparent);
}
.services-bg-ink .cat-head,
.services-bg-sage .cat-head { border-color: color-mix(in srgb, var(--cream) 24%, transparent); }
.services-bg-ink .cat-head-tag::before,
.services-bg-sage .cat-head-tag::before { background: color-mix(in srgb, var(--cream) 50%, transparent); }

/* ---------- Reviews — drifting marquee on the sage block */
.reviews-section { isolation: isolate; }
.reviews-head {
  text-align: center;
  margin-bottom: clamp(36px, 6vw, 56px);
}
.reviews-eyebrow-script {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.55rem;
  line-height: 1;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  margin-bottom: 18px;
  transform: rotate(-1.2deg);
}
.reviews-headline {
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0;
  color: var(--cream);
  text-wrap: balance;
}

/* horizontal infinite ticker, drifting left → right */
.reviews-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.reviews-track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  width: max-content;
  padding: 4px 0;          /* room for card shadow */
  animation: reviews-scroll-x 110s linear infinite;
  will-change: transform;
}
@keyframes reviews-scroll-x {
  /* track holds the set twice; start with the second copy in view, drift right
     until the first copy is in view → cards appear to move left → right */
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
.reviews-marquee:hover .reviews-track,
.reviews-marquee:focus-within .reviews-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; transform: translate3d(-50%, 0, 0); }
}

.reviews-card {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  border-radius: 4px;
  padding: 22px 24px 18px;
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent),
    0 18px 30px -22px color-mix(in srgb, var(--ink) 50%, transparent);
}
.reviews-card-quote { flex: 1; }   /* push the byline to the bottom */
@media (max-width: 640px) { .reviews-card { flex-basis: 280px; } }
.reviews-card-quote {
  font-style: italic;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.45;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: pretty;
}
.reviews-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.reviews-card-byline { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reviews-card-name {
  font-size: 13px; font-weight: 500; letter-spacing: 0.005em;
  color: var(--ink);
}
.reviews-card-city {
  font-size: 12px; color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reviews-card-tag {
  flex: none;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-deep);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--accent-deep) 22%, transparent);
}

/* Visit section — tappable phone/email + WhatsApp button */
.visit-link {
  color: inherit;
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, color 0.3s;
}
.visit-link:hover { border-bottom-color: var(--accent); }
.visit-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
}
.visit-whatsapp:hover {
  background: var(--accent);
  color: var(--cream);
  border-color: var(--accent);
}

/* SR-only utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Invitation card (replaces the BookingCta blob) */
.invitation-section { isolation: isolate; background: var(--cream); }
.invitation-card {
  position: relative;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cream) 92%, var(--bone) 8%), color-mix(in srgb, var(--cream) 78%, var(--bone) 22%));
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 3px;
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent),
    0 50px 80px -50px color-mix(in srgb, var(--ink) 35%, transparent);
}
.invitation-card::before,
.invitation-card::after {
  /* deckled inner border — two thin rules instead of a card outline */
  content: '';
  position: absolute;
  left: 18px; right: 18px;
  height: 1px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}
.invitation-card::before { top: 18px; }
.invitation-card::after  { bottom: 18px; }
.invitation-head {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 28px;
}
.invitation-rule-long {
  flex: 0 1 120px; height: 1px;
  background: color-mix(in srgb, var(--ink) 30%, transparent);
}
.invitation-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  white-space: nowrap;
}
.invitation-h {
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin: 0 0 24px;
  text-wrap: balance;
}
.invitation-lead {
  margin: 0 auto 32px;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.invitation-flourish {
  display: block;
  margin: 0 auto 32px;
  width: clamp(180px, 32vw, 260px);
  height: auto;
  color: var(--accent-deep);
}
.invitation-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.invitation-foot {
  display: flex; align-items: baseline; justify-content: center; gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px dashed color-mix(in srgb, var(--ink) 18%, transparent);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.invitation-kicker {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
}
.invitation-signed {
  font-family: var(--font-script);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent-deep);
  letter-spacing: 0;
  transform: translateY(2px) rotate(-2deg);
  transform-origin: left center;
}

/* Dark direction: invitation card sits on ink */
.dir-ink .invitation-card,
.dir-midnight .invitation-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cream) 8%, var(--ink)), color-mix(in srgb, var(--cream) 4%, var(--ink)));
  border-color: color-mix(in srgb, var(--cream) 18%, transparent);
}
.dir-ink .invitation-card::before,
.dir-ink .invitation-card::after,
.dir-midnight .invitation-card::before,
.dir-midnight .invitation-card::after { background: color-mix(in srgb, var(--cream) 16%, transparent); }
.dir-ink .invitation-foot,
.dir-midnight .invitation-foot { border-top-color: color-mix(in srgb, var(--cream) 20%, transparent); }

/* ---------- Legal pages (privacy, voorwaarden) — minimal serif column */
.legal-page {
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 56px) clamp(40px, 8vw, 96px);
  font-family: var(--font-body);
}
.legal-page-header {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  padding-bottom: 16px;
}
.legal-back,
.legal-back-foot a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.legal-back:hover,
.legal-back-foot a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.legal-page-title-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  font-size: 14px;
}
/* Lang switcher on legal pages — same compact pill as the main nav */
.legal-langs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 999px;
  padding: 3px;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
}
.legal-langs a {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.75;
  transition: all 0.3s;
}
.legal-langs a:hover { opacity: 1; }
.legal-langs a.active {
  background: var(--ink);
  color: var(--cream);
  opacity: 1;
}
.legal-content {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.65;
}
.legal-content h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.legal-content .lead-date {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 36px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal-content p,
.legal-content ul {
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.legal-content ul {
  padding-left: 22px;
}
.legal-content ul li {
  margin-bottom: 6px;
}
.legal-content strong {
  color: var(--ink);
  font-weight: 500;
}
.legal-content a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.legal-content a:hover {
  color: var(--ink);
}
.legal-back-foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* Mobile tweaks */
@media (max-width: 700px) {
  .atelier-card-list { grid-template-columns: 1fr; row-gap: 4px; }
  .atelier-card-list dt { padding-top: 6px; }
  .invitation-card { padding-left: 18px; padding-right: 18px; }
  .invitation-card::before, .invitation-card::after { left: 10px; right: 10px; }
  .reviews-pullquote { max-width: none; }
}
