/* Valtherix Capital Partners: shared styles layered on the Stitch design tokens. */
:root {
  --ink: #0a1124;
  --gold: #c6a54a;
  --gold-light: #e6cf8b;
  --gold-grad: linear-gradient(100deg, #9a7b2c 0%, #e6cf8b 35%, #c6a54a 55%, #f1e2b0 75%, #9a7b2c 100%);
  --ease-lux: cubic-bezier(0.2, 0.65, 0.3, 1);
}

::selection { background: var(--gold-light); color: var(--ink); }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* ---------- Hairline rules (from Stitch) ---------- */
.hairline-t { border-top: 1px solid #E8E7E2; }
.hairline-b { border-bottom: 1px solid #E8E7E2; }
.hairline-l { border-left: 1px solid #E8E7E2; }
.hairline-r { border-right: 1px solid #E8E7E2; }
.hairline-all,
.hairline-box { border: 1px solid #E8E7E2; }
.hairline-border { border-color: rgba(16, 26, 53, 0.12); }
.gold-accent-border { border-color: var(--gold); }

[id] { scroll-margin-top: 6rem; }

/* ---------- Gold ---------- */
.text-gold {
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-shimmer 8s ease-in-out infinite alternate;
}
@keyframes gold-shimmer { to { background-position: 100% center; } }

.rule-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
}

/* ---------- Buttons ---------- */
.btn-gold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(135deg, #e3c977 0%, #c6a54a 50%, #a8862f 100%);
  box-shadow: 0 10px 30px -12px rgba(198, 165, 74, 0.55);
  transition: box-shadow 0.4s var(--ease-lux), transform 0.4s var(--ease-lux);
}
.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-lux);
}
.btn-gold:hover { box-shadow: 0 16px 40px -12px rgba(198, 165, 74, 0.7); transform: translateY(-1px); }
.btn-gold:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: #f6f1e7;
  border: 1px solid rgba(246, 241, 231, 0.3);
  transition: border-color 0.4s var(--ease-lux), color 0.4s var(--ease-lux), background-color 0.4s var(--ease-lux);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(198, 165, 74, 0.06); }

/* ---------- Film grain on dark surfaces ---------- */
/* .grain parents set their own `relative` class */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 2; }
.grain > .absolute { position: absolute; z-index: 0; }

/* ---------- Header ---------- */
.site-header {
  transition: background-color 0.5s var(--ease-lux), border-color 0.5s var(--ease-lux), backdrop-filter 0.5s;
}
.site-header .header-bar,
.site-header .header-logo { transition: height 0.5s var(--ease-lux); }
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(10, 17, 36, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(198, 165, 74, 0.22);
}
/* backdrop-filter would make the header the containing block for the fixed
   mobile overlay and clip it, so the open menu uses a solid fill instead. */
.site-header.menu-open {
  background: var(--ink);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header.is-scrolled .header-bar { height: 4.5rem; }
.site-header.is-scrolled .header-logo { height: 2.5rem; }

.nav-link { position: relative; padding: 0.25rem 0; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-lux);
}
.nav-link:hover::after,
.nav-link[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.mobile-menu:not(.hidden) { animation: menu-in 0.5s var(--ease-lux) both; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Hero ---------- */
.hero-img { animation: hero-zoom 14s var(--ease-lux) both; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero-in { animation: rise 1.2s var(--ease-lux) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.scroll-cue-line {
  display: block;
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  transform-origin: top;
  animation: cue 2.4s var(--ease-lux) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sector ticker ---------- */
.marquee-track { width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s var(--ease-lux) var(--d, 0ms), transform 1.1s var(--ease-lux) var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Card lift on light sections ---------- */
.lift { transition: transform 0.6s var(--ease-lux), box-shadow 0.6s var(--ease-lux), border-color 0.4s, background-color 0.4s; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(10, 17, 36, 0.28); }

main img { transition-timing-function: var(--ease-lux); }

/* ---------- Page curtain (enter + leave transitions) ---------- */
.page-curtain { display: none; }
.js .page-curtain {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  pointer-events: none;
  animation: curtain-out 1s var(--ease-lux) 0.35s forwards;
}
.page-curtain-logo { width: min(240px, 55vw); height: auto; animation: curtain-logo 0.9s var(--ease-lux) both; }
@keyframes curtain-out { to { transform: translateY(-100%); } }
@keyframes curtain-logo { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.js.is-leaving .page-curtain { animation: curtain-in 0.55s var(--ease-lux) forwards; transform: translateY(100%); }
.js.is-leaving .page-curtain-logo { animation: none; opacity: 0; }
@keyframes curtain-in { to { transform: translateY(0); } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, var(--gold-deep, #9a7b2c), var(--gold-light), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Image wipe reveal ---------- */
/* The clip sits on the image, not the frame: a fully clipped frame would never
   register with IntersectionObserver. */
.js .img-reveal > img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.18);
  transition: clip-path 1.4s var(--ease-lux), transform 1.8s var(--ease-lux), filter 1.2s var(--ease-lux);
}
.js .img-reveal.is-visible > img { clip-path: inset(0 0 0 0); transform: scale(1); }
.js .img-reveal.is-visible:hover > img,
.js .group:hover .img-reveal.is-visible > img { transform: scale(1.06); }

/* ---------- Hairline rules draw in ---------- */
.js .reveal :is(.h-px, [class*="h-[1px]"]),
.js .reveal.h-px { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-lux) 0.25s; }
.js .reveal.is-visible :is(.h-px, [class*="h-[1px]"]),
.js .reveal.is-visible.h-px { transform: none; }

/* ---------- Headings rise word by word ---------- */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-lux); transition-delay: calc(var(--i) * 55ms + 120ms); }
.is-split.is-visible .split-word > span { transform: none; }

/* ---------- Icons float ---------- */
main .material-symbols-outlined.text-3xl { transition: transform 0.6s var(--ease-lux); }
main .group:hover .material-symbols-outlined.text-3xl { transform: translateY(-3px) rotate(-6deg); }

/* ---------- Industry cards ---------- */
.industry-card { box-shadow: 0 24px 48px -32px rgba(10, 17, 36, 0.6); }
.industry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(198, 165, 74, 0);
  transition: border-color 0.6s var(--ease-lux), inset 0.6s var(--ease-lux);
  pointer-events: none;
}
.industry-card:hover::after { inset: 10px; border-color: rgba(198, 165, 74, 0.55); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: wa-in 0.8s var(--ease-lux) 1.6s both;
}
.wa-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  color: #fff;
  background: linear-gradient(145deg, #2fe07a, #1ebe5d 55%, #128c4a);
  box-shadow: 0 14px 30px -10px rgba(18, 140, 74, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux);
}
.wa-btn::before,
.wa-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-btn::after { animation-delay: 1.3s; }
.wa-float:hover .wa-btn { transform: translateY(-3px) scale(1.05); box-shadow: 0 20px 36px -12px rgba(18, 140, 74, 0.75); }
.wa-tip {
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: #f6f1e7;
  border: 1px solid rgba(198, 165, 74, 0.35);
  font: 600 0.72rem/1 Manrope, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.4s var(--ease-lux), transform 0.4s var(--ease-lux);
  pointer-events: none;
}
.wa-float:hover .wa-tip,
.wa-float:focus-visible .wa-tip { opacity: 1; transform: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(24px) scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (min-width: 768px) { .wa-float { right: 2rem; bottom: 2rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .img-reveal, .js .img-reveal > img, .split-word > span { opacity: 1; transform: none; clip-path: none; }
  .js .reveal :is(.h-px, [class*="h-[1px]"]) { transform: none; }
  .js .page-curtain { display: none; }
}

/* Let the hero choreography begin as the page curtain lifts */
.js .hero-in { animation-delay: calc(var(--d, 0ms) + 700ms); }
.js .hero-img { animation-delay: 0.5s; }
