/* ─── Panama Projects · Caribbean Paradise ─── */

:root {
  /* Caribbean palette — turquoise waters, coral sunsets, sand */
  --ocean-deep:  #044C5C;
  --ocean-mid:   #0A7D8C;
  --turquoise:   #1FC4C4;
  --aqua:        #6FE4DA;
  --aqua-soft:   #C8F1EC;

  --sand:        #F3E4C1;
  --sand-warm:   #E9D3A2;
  --cream:       #FFF9EC;
  --paper:       #FFFDF5;

  --coral:       #FF6B4A;
  --coral-deep:  #E14F2E;
  --sunset:      #F8A56B;
  --hibiscus:    #D63E52;

  --palm:        #1F5F4A;
  --palm-deep:   #0B3B2D;

  --ink:         #0B2733;
  --ink-soft:    #254957;
  --ink-mute:    #6E8A91;

  --line:        rgba(11, 39, 51, 0.12);
  --line-soft:   rgba(11, 39, 51, 0.06);

  --font-display:'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:   'Manrope', -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', ui-monospace, monospace;
  --font-script: 'Caveat', cursive;

  --max-w: 1480px;
  --gutter: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Type primitives */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.92;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  text-wrap: balance;
}
.display em, .italic {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.script {
  font-family: var(--font-script);
  font-weight: 500;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mute);
}
.lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 54ch;
  text-wrap: pretty;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.btn-coral {
  background: var(--coral);
  color: var(--paper);
  box-shadow: 0 12px 28px -10px rgba(255, 107, 74, 0.55);
}
.btn-coral:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(255, 107, 74, 0.65);
}
.btn-turquoise {
  background: var(--turquoise);
  color: var(--ocean-deep);
  box-shadow: 0 12px 28px -10px rgba(31, 196, 196, 0.55);
}
.btn-turquoise:hover {
  background: var(--aqua);
  transform: translateY(-2px);
}
.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255, 249, 236, 0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover {
  background: rgba(255, 249, 236, 0.1);
  border-color: var(--cream);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.tag-coral { background: rgba(255, 107, 74, 0.14); color: var(--coral-deep); }
.tag-turquoise { background: rgba(31, 196, 196, 0.16); color: var(--ocean-deep); }
.tag-palm { background: rgba(31, 95, 74, 0.14); color: var(--palm); }
.tag-sand { background: rgba(233, 211, 162, 0.4); color: var(--ink-soft); }

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

/* Reveal — progressive enhancement: visible by default, hidden only when JS arms them */
.reveal { opacity: 1; transform: none; transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal-armed { opacity: 0; transform: translateY(28px); }
.reveal-armed.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

/* Placeholder imagery — Caribbean gradients */
.ph {
  position: relative;
  overflow: hidden;
  color: var(--cream);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 249, 236, 0.7);
  mix-blend-mode: screen;
}
.ph-ocean {
  background:
    linear-gradient(180deg, rgba(11,39,51,0.10) 0%, rgba(11,39,51,0.55) 100%),
    url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: #044C5C;
}
.ph-sunset {
  background:
    linear-gradient(180deg, rgba(125,46,66,0.10) 0%, rgba(125,46,66,0.45) 100%),
    url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: #FF6B4A;
}
.ph-palm {
  background:
    linear-gradient(180deg, rgba(11,59,45,0.15) 0%, rgba(11,59,45,0.55) 100%),
    url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: #1F5F4A;
}
.ph-sand {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(11,39,51,0.30) 100%),
    url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
  background-color: #E9D3A2;
  color: var(--cream);
}
.ph-sand::after { color: var(--ink-soft); }

/* Divider */
.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

*:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 3px;
}

/* Floating elements animation */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes drift-x {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.float-y { animation: float-y 6s var(--ease) infinite; }
.rotate-slow { animation: rotate-slow 40s linear infinite; }

/* Responsive */
@media (max-width: 900px) {
  .nav-desktop { display: none !important; }
  .nav-cta-desktop { display: none !important; }
  .nav-burger { display: inline-flex !important; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: flex !important; flex-direction: column !important; }
  .mobile-stack { grid-template-columns: 1fr !important; gap: 32px !important; }
  section { padding-top: 64px; padding-bottom: 64px; }
  .btn { padding: 14px 22px; min-height: 48px; }
  :root { --gutter: 20px; }
}
@media (min-width: 901px) {
  .nav-burger { display: none !important; }
  .show-mobile { display: none !important; }
}

/* Grain overlay */
.grain {
  position: relative;
}
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

/* Magazine rule */
.rule-coral {
  width: 48px;
  height: 2px;
  background: var(--coral);
  display: inline-block;
  margin-right: 16px;
  vertical-align: middle;
}

/* Pill link */
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.pill-link:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* WebGL canvas wrapper */
.webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Seashell/wave divider SVG container */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
}

/* Custom cursor for interactive sections */
.cursor-explore {
  cursor: pointer;
}


/* All Dispatches CTA — pill styling with hover lift */
.all-dispatches-cta:hover {
  background: rgba(255, 107, 74, 0.92) !important;
  border-color: rgba(255, 107, 74, 0.92) !important;
  color: var(--paper) !important;
  box-shadow: 0 0 32px rgba(255, 107, 74, 0.55), 0 6px 18px -6px rgba(255, 107, 74, 0.4) !important;
  transform: translateY(-1px);
}
.all-dispatches-cta:hover span:last-child {
  color: var(--paper) !important;
  transform: translateX(2px);
  transition: transform 0.2s ease;
}


/* Hero featured card crossfade */
@keyframes feat-fade {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}
