/* ═══════════════════════════════════════════════
   LOKA — The Himalayan Treasures
   Brand Stylesheet
   ═══════════════════════════════════════════════ */

/* === Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* === CSS Variables === */
/* The loka-* names are kept from the original theme so existing views pick up
   the new palette; "navy" now means deep forest green. Mirrors the Tailwind
   config in app/views/layouts/shop.php. */
:root {
  --loka-navy:  #173B2D;
  --loka-blue:  #1F4A39;
  --loka-night: #0F251B;
  --loka-gold:  #C49A52;
  --loka-gold2: #E3CB94;
  --loka-bronze:#8A6B3A;
  --loka-line:  #DDD3C0;
  --loka-cream: #F4EBDD;
  --loka-ivory: #FBF7EF;
  --loka-parch: #E9E2D5;
  --loka-stone: #766044;
  --loka-mist:  #E6E8DF;
  --loka-amber: #D7A52E;
  --loka-earth: #30251D;
  --loka-sage:  #5C7A5C;
  --lk-ease: cubic-bezier(.22,1,.36,1);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  color: var(--loka-navy);
  background-color: var(--loka-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Brand Typography === */
.font-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* === Selection color === */
::selection {
  background: var(--loka-gold);
  color: var(--loka-navy);
}

/* === Flash messages === */
.flash-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.flash-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.flash-info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }

/* === LOKA Product Card === */
.loka-product-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.loka-product-card:hover {
  transform: translateY(-4px);
}

/* === Image zoom === */
.img-zoom { overflow: hidden; }
.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-zoom:hover img { transform: scale(1.06); }

/* === Sticky nav scroll shadow === */
.nav-scrolled {
  box-shadow: 0 2px 20px rgba(16,21,16,0.08);
}

/* === Gold underline animation === */
.gold-link {
  position: relative;
  text-decoration: none;
}
.gold-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--loka-gold);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.gold-link:hover::after { width: 100%; }

/* === Star rating input === */
.star-rating input { display: none; }
.star-rating label {
  font-size: 1.5rem;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.15s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--loka-gold); }
.star-rating { display: flex; flex-direction: row-reverse; }

/* === Skeleton loading === */
@keyframes skeleton-shimmer {
  0%   { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0ebe3 25%, #e8e0d0 50%, #f0ebe3 75%);
  background-size: 1000px 100%;
  animation: skeleton-shimmer 1.8s infinite linear;
  border-radius: 2px;
}

/* === Toast notifications === */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  padding: 0.875rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 32px rgba(16,21,16,0.15);
  animation: toast-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 340px;
  pointer-events: auto;
}
.toast-success {
  background: var(--loka-navy);
  color: var(--loka-gold2);
  border-left: 3px solid var(--loka-gold);
}
.toast-error {
  background: #fff1f2;
  color: #b91c1c;
  border-left: 3px solid #fca5a5;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* === Wishlist active === */
.wishlist-btn.active svg { fill: #ef4444; stroke: #ef4444; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--loka-cream); }
::-webkit-scrollbar-thumb { background: var(--loka-gold); }
::-webkit-scrollbar-thumb:hover { background: var(--loka-stone); }

/* === Quantity stepper === */
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--loka-parch);
  overflow: hidden;
  width: fit-content;
}
.qty-stepper button {
  padding: 0.375rem 0.875rem;
  background: var(--loka-cream);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--loka-navy);
  transition: background 0.15s;
}
.qty-stepper button:hover { background: var(--loka-parch); }
.qty-stepper input {
  width: 3rem;
  text-align: center;
  border: none;
  border-left: 1px solid var(--loka-parch);
  border-right: 1px solid var(--loka-parch);
  padding: 0.375rem 0;
  font-size: 0.875rem;
  outline: none;
  background: white;
  color: var(--loka-navy);
}

/* === Range slider === */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: var(--loka-parch);
  border-radius: 1px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--loka-gold);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* === Alpine x-cloak === */
[x-cloak] { display: none !important; }

/* === Scrollbar hide utility === */
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

/* === Thin scrollbar === */
.scrollbar-thin::-webkit-scrollbar { height: 3px; }
.scrollbar-thin::-webkit-scrollbar-track { background: var(--loka-cream); }
.scrollbar-thin::-webkit-scrollbar-thumb { background: var(--loka-gold); border-radius: 2px; }

/* === Focus ring === */
*:focus-visible {
  outline: 2px solid var(--loka-gold);
  outline-offset: 2px;
}

/* === Line clamp utilities === */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Print === */
@media print {
  nav, footer, .no-print { display: none !important; }
  body { padding: 0; margin: 0; background: white; }
}

/* === Smooth transitions for page elements === */
.loka-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.loka-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Section dividers === */
.loka-divider {
  width: 48px;
  height: 1px;
  background: var(--loka-gold);
  margin: 1.5rem auto;
}

/* === Premium button base === */
.btn-loka {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-loka-primary {
  background: var(--loka-gold);
  color: var(--loka-navy);
}
.btn-loka-primary:hover {
  background: var(--loka-gold2);
  box-shadow: 0 12px 30px -12px rgba(16,21,16,0.3);
}
.btn-loka-outline {
  border: 1px solid var(--loka-navy);
  color: var(--loka-navy);
}
.btn-loka-outline:hover {
  background: var(--loka-navy);
  color: white;
}

/* ═══════════════════════════════════════════════
   PREMIUM EXPERIENCE LAYER
   Mini-cart drawer + quick-view modal
   ═══════════════════════════════════════════════ */

/* Shared overlay shell */
.loka-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.loka-layer.open { visibility: visible; pointer-events: auto; }

.loka-layer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 21, 16, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.loka-layer.open .loka-layer-backdrop { opacity: 1; }

.loka-x {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--loka-parch);
  background: #fff;
  color: var(--loka-navy);
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}
.loka-x svg { width: 18px; height: 18px; }
.loka-x:hover { background: var(--loka-navy); color: var(--loka-gold2); border-color: var(--loka-navy); }

/* ── Drawer ─────────────────────────────────── */
.loka-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 92vw;
  background: var(--loka-cream);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -12px 0 40px rgba(16, 21, 16, 0.18);
}
.loka-layer.open .loka-drawer { transform: translateX(0); }

.loka-drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 1.5rem 1.5rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--loka-parch);
}
.loka-drawer-eyebrow {
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--loka-gold); font-weight: 600; margin-bottom: 0.35rem;
}
.loka-drawer-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem; font-weight: 400; color: var(--loka-navy);
  line-height: 1; display: flex; align-items: center; gap: 0.5rem;
}
.loka-drawer-count {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700;
  background: var(--loka-navy); color: var(--loka-gold2);
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}

/* Free-shipping bar */
.loka-ship { padding: 0.9rem 1.5rem; background: #fff; border-bottom: 1px solid var(--loka-parch); }
.loka-ship-msg { font-size: 11px; color: var(--loka-stone); margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.loka-ship-msg b { color: var(--loka-navy); }
.loka-ship-msg .done { color: var(--loka-sage); font-weight: 600; }
.loka-ship-track { height: 4px; background: var(--loka-parch); border-radius: 999px; overflow: hidden; }
.loka-ship-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--loka-gold), var(--loka-gold2));
  border-radius: 999px; transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.loka-drawer-body { flex: 1; overflow-y: auto; padding: 0.5rem 1.5rem; }

.loka-citem {
  display: flex; gap: 0.85rem; padding: 1.1rem 0;
  border-bottom: 1px solid var(--loka-parch);
  animation: loka-citem-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes loka-citem-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.loka-citem-img { width: 68px; height: 82px; flex-shrink: 0; overflow: hidden; background: #fff; border: 1px solid var(--loka-parch); }
.loka-citem-img img { width: 100%; height: 100%; object-fit: cover; }
.loka-citem-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.loka-citem-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px; font-weight: 500; color: var(--loka-navy); line-height: 1.2;
  text-decoration: none;
}
.loka-citem-name:hover { color: var(--loka-gold); }
.loka-citem-var { font-size: 10px; letter-spacing: 0.04em; color: var(--loka-stone); text-transform: uppercase; margin: 0.25rem 0 auto; }
.loka-citem-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.6rem; }
.loka-citem-price { font-size: 14px; font-weight: 600; color: var(--loka-navy); }
.loka-citem-x {
  align-self: flex-start; background: none; border: none; cursor: pointer;
  color: var(--loka-stone); font-size: 18px; line-height: 1; padding: 2px 4px;
  transition: color 0.2s;
}
.loka-citem-x:hover { color: #b91c1c; }

.loka-step { display: flex; align-items: center; border: 1px solid var(--loka-parch); background: #fff; }
.loka-step button {
  width: 26px; height: 26px; border: none; background: none; cursor: pointer;
  color: var(--loka-navy); font-size: 15px; line-height: 1; transition: background 0.15s;
}
.loka-step button:hover { background: var(--loka-parch); }
.loka-step span { min-width: 26px; text-align: center; font-size: 12px; font-weight: 600; color: var(--loka-navy); }

.loka-drawer-empty { text-align: center; padding: 4rem 1rem; }
.loka-drawer-empty svg { width: 46px; height: 46px; color: var(--loka-parch); margin: 0 auto 1.25rem; }
.loka-drawer-empty h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; color: var(--loka-navy); margin-bottom: 0.4rem; }
.loka-drawer-empty p { font-size: 12.5px; color: var(--loka-stone); margin-bottom: 1.5rem; }

.loka-drawer-foot { padding: 1.25rem 1.5rem; background: #fff; border-top: 1px solid var(--loka-parch); }
.loka-drawer-subtotal { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.35rem; }
.loka-drawer-subtotal > span:first-child { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--loka-stone); }
.loka-drawer-subtotal-val { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.9rem; font-weight: 600; color: var(--loka-navy); }
.loka-drawer-note { font-size: 10px; color: var(--loka-stone); margin-bottom: 1rem; }

.loka-btn-primary {
  display: block; text-align: center; text-decoration: none;
  background: var(--loka-navy); color: #fff;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  padding: 1rem; transition: all 0.3s;
}
.loka-btn-primary:hover { background: var(--loka-gold); color: var(--loka-navy); }
.loka-btn-ghost {
  display: block; text-align: center; text-decoration: none;
  color: var(--loka-stone); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.75rem; margin-top: 0.25rem; transition: color 0.2s;
}
.loka-btn-ghost:hover { color: var(--loka-navy); }

/* Cart bubble bounce on add */
@keyframes loka-bump { 0% { transform: scale(1); } 35% { transform: scale(1.5); } 70% { transform: scale(0.9); } 100% { transform: scale(1); } }
.loka-bump { animation: loka-bump 0.5s cubic-bezier(0.22, 1, 0.36, 1); }

/* ── Quick view ─────────────────────────────── */
.loka-qv {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(0.98);
  width: 860px; max-width: 94vw; max-height: 92vh;
  background: #fff; overflow: hidden;
  opacity: 0; transition: opacity 0.35s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 30px 80px rgba(16, 21, 16, 0.35);
}
.loka-layer.open .loka-qv { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.loka-qv-x { position: absolute; top: 14px; right: 14px; z-index: 5; }
.loka-qv-body { display: grid; grid-template-columns: 1fr 1fr; max-height: 92vh; }
.loka-qv-gallery { background: var(--loka-cream); position: relative; }
.loka-qv-gallery .main { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.loka-qv-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.loka-qv-thumbs img { width: 52px; height: 62px; object-fit: cover; border: 1px solid var(--loka-parch); cursor: pointer; opacity: 0.7; transition: all 0.2s; }
.loka-qv-thumbs img.active, .loka-qv-thumbs img:hover { opacity: 1; border-color: var(--loka-gold); }
.loka-qv-info { padding: 2rem 2rem 2rem; overflow-y: auto; display: flex; flex-direction: column; }
.loka-qv-cat { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--loka-gold); font-weight: 600; }
.loka-qv-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; font-weight: 300; color: var(--loka-navy); line-height: 1.1; margin: 0.4rem 0 0.6rem; }
.loka-qv-rate { display: flex; align-items: center; gap: 0.4rem; font-size: 12px; color: var(--loka-stone); margin-bottom: 0.75rem; }
.loka-qv-rate .stars { color: var(--loka-gold); letter-spacing: 1px; }
.loka-qv-short { font-size: 13px; color: var(--loka-stone); line-height: 1.7; margin-bottom: 1.1rem; }
.loka-qv-price { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1.25rem; }
.loka-qv-price .now { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; font-weight: 600; color: var(--loka-navy); }
.loka-qv-price .was { font-size: 14px; color: var(--loka-stone); text-decoration: line-through; }
.loka-qv-price .off { font-size: 11px; font-weight: 700; color: var(--loka-sage); text-transform: uppercase; }
.loka-qv-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--loka-navy); margin-bottom: 0.5rem; }
.loka-qv-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.25rem; }
.loka-qv-size {
  min-width: 52px; height: 44px; padding: 0 14px;
  border: 1px solid var(--loka-parch); background: #fff; color: var(--loka-navy);
  font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.loka-qv-size:hover { border-color: var(--loka-gold); }
.loka-qv-size.active { background: var(--loka-navy); color: #fff; border-color: var(--loka-navy); }
.loka-qv-size:disabled { color: rgba(139,115,85,0.4); text-decoration: line-through; cursor: not-allowed; background: var(--loka-cream); }
.loka-qv-actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.loka-qv-add {
  background: var(--loka-gold); color: var(--loka-navy); border: none; cursor: pointer;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; padding: 1rem;
  transition: all 0.3s;
}
.loka-qv-add:hover { background: var(--loka-gold2); }
.loka-qv-add:disabled { opacity: 0.5; cursor: not-allowed; }
.loka-qv-full { text-align: center; text-decoration: none; color: var(--loka-navy); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.6rem; border: 1px solid var(--loka-parch); transition: all 0.2s; }
.loka-qv-full:hover { border-color: var(--loka-navy); }
.loka-qv-loading { grid-column: 1 / -1; padding: 5rem; text-align: center; color: var(--loka-stone); font-size: 13px; }

/* Quick-view trigger on product cards */
.loka-qv-trigger {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  background: rgba(255,255,255,0.94); color: var(--loka-navy);
  border: none; cursor: pointer;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  padding: 0.7rem; opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.group:hover .loka-qv-trigger { opacity: 1; transform: translateY(0); }
.loka-qv-trigger:hover { background: var(--loka-navy); color: var(--loka-gold2); }
.loka-qv-trigger svg { width: 14px; height: 14px; }
@media (hover: none) { .loka-qv-trigger { display: none; } }

body.loka-lock { overflow: hidden; }

@media (max-width: 720px) {
  .loka-qv-body { grid-template-columns: 1fr; overflow-y: auto; }
  .loka-qv-gallery .main { aspect-ratio: 16/10; }
}
@media (prefers-reduced-motion: reduce) {
  .loka-drawer, .loka-qv, .loka-layer-backdrop, .loka-ship-fill, .loka-citem { transition: none; animation: none; }
}

/* ═══════════════════════════════════════════════
   LOKA DESIGN SYSTEM — shared "lk-" layer
   Forest green + antique gold on warm ivory.
   Use these across every page for one consistent look.
   ═══════════════════════════════════════════════ */

/* Eyebrow: tiny tracked uppercase label above headings */
.lk-eyebrow {
  font-size: 10px; letter-spacing: 0.38em; text-transform: uppercase;
  font-weight: 500; color: var(--loka-bronze);
  display: inline-flex; align-items: center; gap: 0.9rem;
}
.lk-eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.lk-eyebrow.is-center::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.lk-on-dark .lk-eyebrow, .lk-eyebrow.on-dark { color: var(--loka-gold); }

/* Display headings: light editorial serif; <em> is the gold italic accent */
.lk-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; line-height: 1.12; letter-spacing: -0.008em;
  color: var(--loka-navy);
  font-size: clamp(1.9rem, 3vw, 3rem);
}
.lk-display-sm { font-size: clamp(1.75rem, 2.8vw, 2.75rem); }
.lk-display em { font-style: italic; font-weight: 400; color: var(--loka-bronze); }
.lk-on-dark .lk-display, .lk-display.on-dark { color: var(--loka-ivory); }
.lk-on-dark .lk-display em, .lk-display.on-dark em { color: var(--loka-gold2); }

/* Body copy */
.lk-lead { font-size: clamp(0.95rem, 1.15vw, 1.0625rem); line-height: 1.85; color: var(--loka-stone); font-weight: 300; }
.lk-on-dark .lk-lead, .lk-lead.on-dark { color: rgba(243,235,221,.72); }

/* Animated metallic gold text */
.lk-gold-text {
  background: linear-gradient(100deg, #A9853F 0%, #E3CB94 28%, #FFF3CF 46%, #C6A15B 62%, #8A6B3A 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: lk-sheen 7s ease-in-out infinite;
}
@keyframes lk-sheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Hairline rule with a centre diamond */
.lk-rule { display: flex; align-items: center; gap: 14px; color: var(--loka-gold); }
.lk-rule::before, .lk-rule::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, currentColor); opacity: .55; }
.lk-rule::after { background: linear-gradient(270deg, transparent, currentColor); }
.lk-rule i { width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); display: block; }

/* Buttons: square, tracked uppercase, with a light sweep on hover */
.lk-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 1.05rem 2.25rem; min-height: 48px;
  font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: color .45s var(--lk-ease), background-color .45s var(--lk-ease), border-color .45s var(--lk-ease), box-shadow .45s var(--lk-ease), transform .45s var(--lk-ease);
}
.lk-btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--lk-ease);
}
.lk-btn:hover::after { transform: translateX(120%); }
.lk-btn svg { width: 14px; height: 14px; transition: transform .45s var(--lk-ease); }
.lk-btn:hover svg { transform: translateX(4px); }
.lk-btn-gold { background: var(--loka-gold); color: var(--loka-night); }
.lk-btn-gold:hover { background: var(--loka-gold2); box-shadow: 0 18px 40px -18px rgba(198,161,91,.75); transform: translateY(-1px); }
.lk-btn-dark { background: var(--loka-navy); color: var(--loka-ivory); }
.lk-btn-dark:hover { background: var(--loka-night); color: var(--loka-gold2); }
.lk-btn-line { border-color: rgba(20,32,25,.35); color: var(--loka-navy); background: transparent; }
.lk-btn-line:hover { background: var(--loka-navy); color: var(--loka-ivory); border-color: var(--loka-navy); }
.lk-btn-ghost { border-color: rgba(243,235,221,.4); color: var(--loka-ivory); background: rgba(243,235,221,.04); backdrop-filter: blur(6px); }
.lk-btn-ghost:hover { border-color: var(--loka-gold); color: var(--loka-gold2); }

/* Text link with a gold line that draws in */
.lk-link {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
  color: inherit; text-decoration: none; padding-bottom: 6px;
  background: linear-gradient(var(--loka-gold), var(--loka-gold)) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--lk-ease), color .3s;
}
.lk-link:hover { background-size: 32% 1px; color: var(--loka-bronze); }
.lk-on-dark .lk-link:hover { color: var(--loka-gold2); }

/* Dark section surface with a soft gold glow and film grain */
.lk-dark { position: relative; background: var(--loka-navy); color: var(--loka-ivory); }
.lk-night { position: relative; background: var(--loka-night); color: var(--loka-ivory); }
.lk-grain::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.lk-glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(90px); background: radial-gradient(circle, rgba(198,161,91,.42), transparent 68%); }

/* Image frame: slow zoom on hover, optional gold inset border */
.lk-frame { position: relative; overflow: hidden; background: var(--loka-parch); }
.lk-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--lk-ease); }
.lk-frame:hover img { transform: scale(1.06); }
.lk-frame.is-inset::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(227,203,148,.45); pointer-events: none; }

/* Scroll reveal. Add data-reveal (fade up), data-reveal="left|right|zoom|fade".
   Stagger children with data-reveal-group on the parent. motion.js adds .is-in.
   Hidden state only applies once motion.js has marked <html class="lk-js">. */
.lk-js [data-reveal] {
  opacity: 0; transform: translate3d(0, 34px, 0);
  transition: opacity 1.1s var(--lk-ease), transform 1.1s var(--lk-ease);
  transition-delay: var(--lk-delay, 0ms);
  will-change: opacity, transform;
}
.lk-js [data-reveal="left"]  { transform: translate3d(-44px, 0, 0); }
.lk-js [data-reveal="right"] { transform: translate3d(44px, 0, 0); }
.lk-js [data-reveal="zoom"]  { transform: scale(.94); }
.lk-js [data-reveal="fade"]  { transform: none; }
.lk-js [data-reveal].is-in   { opacity: 1; transform: none; }

/* Image curtain reveal: wrap an image in .lk-curtain[data-reveal="fade"] */
.lk-curtain { position: relative; overflow: hidden; }
.lk-js .lk-curtain::after {
  content: ''; position: absolute; inset: 0; background: var(--loka-navy); z-index: 2;
  transform-origin: top; transition: transform 1.3s var(--lk-ease) .1s;
}
.lk-js .lk-curtain.is-in::after { transform: scaleY(0); }
.lk-js .lk-curtain img { transform: scale(1.14); transition: transform 1.9s var(--lk-ease); }
.lk-js .lk-curtain.is-in img { transform: scale(1); }

/* Split headline: motion.js wraps each word of [data-split] */
.lk-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.lk-word > span { display: inline-block; transform: translateY(105%); transition: transform 1.15s var(--lk-ease); transition-delay: calc(var(--i, 0) * 70ms + var(--lk-delay, 0ms)); }
.is-in .lk-word > span, .lk-word.is-in > span { transform: none; }

/* Marquee */
.lk-marquee { overflow: hidden; white-space: nowrap; }
.lk-marquee-track { display: inline-flex; animation: lk-marquee 46s linear infinite; }
.lk-marquee:hover .lk-marquee-track { animation-play-state: paused; }
@keyframes lk-marquee { to { transform: translateX(-50%); } }

/* Scroll progress bar + page veil (both injected by motion.js) */
.lk-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 300; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--loka-bronze), var(--loka-gold2)); pointer-events: none; }
.lk-veil {
  position: fixed; inset: 0; z-index: 400; background: var(--loka-night);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  transition: opacity .9s var(--lk-ease) .15s, visibility 0s linear 1.1s;
}
.lk-veil.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.lk-veil-mark { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: .5em; padding-left: .5em; font-weight: 300; }
.lk-veil-line { width: 120px; height: 1px; background: rgba(198,161,91,.25); overflow: hidden; }
.lk-veil-line::after { content: ''; display: block; height: 100%; width: 100%; background: var(--loka-gold2); transform: translateX(-100%); animation: lk-veil-load 1.1s var(--lk-ease) forwards; }
@keyframes lk-veil-load { to { transform: none; } }
.lk-veil-tag { font-size: 9px; letter-spacing: .5em; text-transform: uppercase; color: rgba(227,203,148,.7); }

/* Layout helpers */
.lk-wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.lk-section { padding-block: clamp(3.75rem, 6.5vw, 6.5rem); }

@media (prefers-reduced-motion: reduce) {
  .lk-js [data-reveal], .lk-js .lk-curtain img, .lk-word > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lk-js .lk-curtain::after { display: none; }
  .lk-gold-text, .lk-marquee-track { animation: none; }
  .lk-veil { display: none; }
  .lk-btn::after { display: none; }
}

/* Lenis smooth scrolling (initialised in motion.js) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }