/* ============================================
   PIN POINT — Design Tokens & Base Styles
   "Luxury tactile" — cream / navy / Fredoka
   ============================================ */

:root {
  /* Color tokens */
  --cream: #F5F1E3;
  --cream-bright: #FDF9EB;
  --cream-dim: #ECE8DA;
  --navy: #1E2A4A;
  --navy-deep: #081534;
  --powder: #C9D9EC;
  --powder-soft: rgba(201, 217, 236, 0.4);
  --teal: #1F5C6B;
  --orange: #E8722C;
  --orange-deep: #D6601A;
  --orange-dark: #B54F11;
  --gold: #C9A227;
  --ink: #1D1C14;
  --ink-soft: #45464E;

  /* Elevation — multi-layer "floating" shadows */
  --shadow-pillow: 0 10px 20px -5px rgba(30, 42, 74, 0.15);
  --shadow-pillow-lg: 0 24px 48px -12px rgba(30, 42, 74, 0.25);
  --shadow-deep: 0 30px 60px -15px rgba(30, 42, 74, 0.4);
  --shadow-gloss: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(30, 42, 74, 0.2);
  --shadow-press: inset 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-float-1: 0 2px 6px rgba(30,42,74,0.08), 0 12px 24px -6px rgba(30,42,74,0.16), 0 32px 60px -18px rgba(30,42,74,0.28);
  --shadow-float-2: 0 4px 10px rgba(30,42,74,0.1), 0 20px 40px -10px rgba(30,42,74,0.22), 0 48px 90px -24px rgba(30,42,74,0.34);
  --shadow-navy-glow: 0 1px 2px rgba(255,255,255,0.12), 0 18px 36px -10px rgba(8,21,52,0.55), inset 0 1px 0 rgba(255,255,255,0.1);
  --shadow-card-hover: 0 6px 14px rgba(30,42,74,0.1), 0 28px 56px -12px rgba(30,42,74,0.28), 0 64px 110px -28px rgba(30,42,74,0.4);

  /* Motion */
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shape */
  --radius-pill: 9999px;
  --radius-card: 2rem;
  --radius-md: 1.5rem;

  /* Fonts */
  --font-display: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  width: 100%;
}

::selection { background: var(--orange); color: #fff; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1.15;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 768px) {
  .container { padding-left: 20px; padding-right: 20px; }
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s var(--ease-spring), background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  will-change: transform;
}

.btn:active {
  transform: scale(0.94, 0.9) !important;
  transition-duration: 0.12s;
}

.btn-primary {
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  border-bottom: 3px solid var(--orange-dark);
  box-shadow: var(--shadow-gloss), 0 8px 18px -6px rgba(232, 114, 44, 0.45), 0 20px 40px -12px rgba(232, 114, 44, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-gloss), 0 14px 26px -8px rgba(232, 114, 44, 0.55), 0 32px 60px -16px rgba(232, 114, 44, 0.4);
}

.btn-primary:active {
  transform: translateY(2px) scale(0.99);
  border-bottom-width: 1px;
  box-shadow: var(--shadow-press);
  background: var(--orange-deep);
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-pillow);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 8px 18px -6px rgba(30, 42, 74, 0.2), 0 24px 44px -12px rgba(30, 42, 74, 0.3);
}

.btn-secondary:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-press);
}

/* ---------------- Utility: glass & tactile ---------------- */

.glass-panel {
  background: rgba(201, 217, 236, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-pillow);
}

.glass-nav {
  background: rgba(253, 249, 235, 0.65);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.specular {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(30, 42, 74, 0.2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: var(--shadow-pillow), inset 0 1px 0 rgba(255,255,255,0.25);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

/* ---------------- Wavy divider ---------------- */

.wavy-divider {
  width: 100%;
  height: 56px;
  display: block;
  line-height: 0;
}

.wavy-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------------- Scroll reveal ----------------
   Elements start VISIBLE. When GSAP (or the IO fallback) is present,
   main.js primes them into a hidden state first, then animates them in.
   This guarantees content never disappears when JS fails to load. */

/* ---------------- Floating idle motion ---------------- */

@keyframes floaty {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-22px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.floaty { animation: floaty 12s ease-in-out infinite; }
.floaty-slow { animation: floaty 15s ease-in-out infinite; }

/* ---------------- Hide scrollbar ---------------- */

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------------- 3D bubble logo ---------------- */

.bubble-logo {
  filter: drop-shadow(0 26px 34px rgba(30, 42, 74, 0.32));
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------------- Liquid progress bar ---------------- */

.liquid-bar {
  position: relative;
  height: 18px;
  width: 100%;
  border-radius: var(--radius-pill);
  background: var(--cream-dim);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(30, 42, 74, 0.15);
}

.liquid-bar-fill {
  position: relative;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--teal), #2a7a8d);
  overflow: hidden;
}

.liquid-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: sheen 2.6s ease-in-out infinite;
}

@keyframes sheen {
  0%   { left: -50%; }
  100% { left: 120%; }
}

/* ---------------- Page flip book ---------------- */

.book-stage {
  perspective: 1800px;
}

.book {
  position: relative;
  transform-style: preserve-3d;
}

.page {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.page--front {
  z-index: 10;
  transition: transform 0.9s var(--ease-lux);
}

.page--back {
  z-index: 5;
  transform: rotateY(0deg);
}

.book.is-flipped .page--front {
  transform: rotateY(-175deg);
}

/* ---------------- Mobile drawer ---------------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(30, 42, 74, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  z-index: 100;
  background: rgba(253, 249, 235, 0.82);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-radius: 2.5rem 0 0 2.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-float-2);
  transform: translateX(105%);
  transition: transform 0.65s var(--ease-spring);
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  will-change: transform;
  visibility: hidden;
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-link {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--navy);
  padding: 14px 0;
  border-bottom: 2px solid var(--cream-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.25s ease, transform 0.3s var(--ease-spring);
}

.drawer-link:hover { color: var(--orange); transform: translateX(6px); }

/* ---------------- Sticky navbar ---------------- */

#navbar {
  transition: padding 0.4s var(--ease-lux), background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.is-scrolled {
  background: rgba(245, 241, 227, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px -8px rgba(30, 42, 74, 0.18);
}

/* ---------------- Lightbox (gallery zoom) ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 21, 52, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-lux), visibility 0.4s var(--ease-lux);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox figure {
  max-width: min(1000px, 92vw);
  max-height: 84vh;
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-float-2);
  transform: scale(0.92);
  transition: transform 0.5s var(--ease-out-soft);
}

.lightbox.is-open figure {
  transform: scale(1);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
  display: block;
}

.lightbox figcaption {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), background 0.3s ease;
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.08);
  background: rgba(255, 255, 255, 0.26);
}

/* ---------------- Section spacing (premium whitespace) ---------------- */

.section-pad {
  padding: 128px 0;
}

@media (max-width: 900px) {
  .section-pad { padding: 84px 0; }
}

/* ---------------- Lenis smooth scroll ---------------- */

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ---------------- Reduced motion ---------------- */

  @media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
