/* ===================== BASE ===================== */
* {
  cursor: none;
}
@media (max-width: 768px) {
  * { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

html {
  scroll-behavior: auto;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #c69c4d;
  color: #05070a;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #05070a; }
::-webkit-scrollbar-thumb { background: #2a3341; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c69c4d; }

/* ===================== CURSOR ===================== */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: #d8b46a;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border: 1.5px solid rgba(216, 180, 106, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.cursor-ring.cursor-hover {
  width: 64px;
  height: 64px;
  background: rgba(216, 180, 106, 0.1);
  border-color: rgba(216, 180, 106, 0.9);
}

/* ===================== SCROLL PROGRESS ===================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #c69c4d, #d8b46a, #f2e1b8);
  z-index: 9997;
  transition: width 0.1s linear;
}

/* ===================== NOISE ===================== */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== HEADER ===================== */
.header-blur {
  backdrop-filter: blur(14px);
  background: rgba(5, 7, 10, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 1px;
  background: #d8b46a;
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: #f5e9c8;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(5, 7, 10, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: max-height 0.4s ease;
}
.mobile-menu.open {
  max-height: 400px;
}
.mobile-menu a {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  letter-spacing: 0.05em;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: linear-gradient(120deg, #c69c4d, #e8c988);
  color: #0a0e14;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  box-shadow: 0 10px 30px -10px rgba(198, 156, 77, 0.5);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -12px rgba(198, 156, 77, 0.65);
}
.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}
.btn-primary svg {
  transition: transform 0.3s ease;
}
.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.btn-ghost:hover {
  border-color: rgba(216, 180, 106, 0.6);
  background: rgba(216, 180, 106, 0.06);
  transform: translateY(-3px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border: 1px solid rgba(216, 180, 106, 0.4);
  border-radius: 999px;
  color: #e8c988;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: rgba(216, 180, 106, 0.1);
  border-color: rgba(216, 180, 106, 0.8);
}

/* ===================== HERO ===================== */
.hero-bg {
  background: radial-gradient(ellipse at 20% 0%, #10151d 0%, #05070a 60%);
}
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 20%, black 0%, transparent 70%);
}

.text-gradient-gold {
  background: linear-gradient(120deg, #e8c988, #c69c4d, #f5e9c8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 10;
}
.scroll-indicator span {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(216, 180, 106, 0.9), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
.scroll-indicator p {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #64748b;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===================== EYEBROW ===================== */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c69c4d;
  font-weight: 600;
}

/* ===================== FEATURE CARDS ===================== */
.feature-card {
  padding: 2.4rem 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, background 0.4s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(216, 180, 106, 0.35);
  background: linear-gradient(160deg, rgba(216, 180, 106, 0.07), rgba(255, 255, 255, 0.01));
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(216, 180, 106, 0.1);
  color: #d8b46a;
  margin-bottom: 1.5rem;
}

/* ===================== METRICS ===================== */
.metrics-bg {
  background: linear-gradient(180deg, #0a0e14, #05070a);
}
.metric-number {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #f5e9c8;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.metric-label {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

/* ===================== SERVICE CARDS ===================== */
.service-card {
  position: relative;
  padding: 2.2rem 1.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 180, 106, 0.3);
  box-shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.6);
}
.service-index {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(216, 180, 106, 0.7);
}

.blog-card {
  position: relative;
  padding: 2rem 1.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 180, 106, 0.3);
  box-shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.6);
}
.blog-tag {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(216, 180, 106, 0.15);
  margin-bottom: 1rem;
}
.blog-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f8fafc;
}
.blog-summary {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.blog-meta {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 1);
}

/* ===================== TESTIMONIALS (Glassmorphism) ===================== */
.testimonial-card {
  position: relative;
  padding: 2.4rem 2rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-8px) scale(1.015);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 25px 60px -20px rgba(198, 156, 77, 0.25);
}
.quote-icon {
  color: rgba(216, 180, 106, 0.5);
  margin-bottom: 1rem;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c69c4d, #8a6a2f);
  color: #05070a;
  font-weight: 700;
  font-size: 0.8rem;
}

/* ===================== CONTACT ===================== */
.contact-bg {
  background: radial-gradient(ellipse at 80% 20%, rgba(198, 156, 77, 0.06), transparent 60%);
}
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(216, 180, 106, 0.1);
  color: #d8b46a;
  flex-shrink: 0;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  transition: all 0.3s ease;
}
.social-icon:hover {
  border-color: rgba(216, 180, 106, 0.7);
  color: #d8b46a;
  transform: translateY(-4px);
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.form-field {
  position: relative;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.9rem 0.2rem 0.6rem;
  color: #f1f5f9;
  font-size: 1rem;
  outline: none;
  resize: none;
  transition: border-color 0.3s ease;
}
.form-field label {
  position: absolute;
  left: 0.2rem;
  top: 0.9rem;
  color: #64748b;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: -0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #d8b46a;
}
.form-field .field-line {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #c69c4d, #f5e9c8);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.form-field input:focus ~ .field-line,
.form-field textarea:focus ~ .field-line {
  width: 100%;
}

.form-field.valid input,
.form-field.valid textarea {
  border-color: rgba(74, 222, 128, 0.6);
}
.form-field.invalid input,
.form-field.invalid textarea {
  border-color: rgba(248, 113, 113, 0.6);
}

.form-success,
.form-error {
  display: none;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.form-success {
  color: #86efac;
}
.form-error {
  color: #fda4af;
}
.form-success.show,
.form-error.show {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== SCROLL REVEALS (fallback / initial state) ===================== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

/* ===================== DATA BOOK 3D DOSSIER INTRO ===================== */
html.dossier-lock,
html.dossier-lock body {
  overflow: hidden;
  height: 100%;
}

.dossier {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2400px;
  perspective-origin: 50% 42%;
  background: #05070a;
  transition: background 0.9s ease, backdrop-filter 0.9s ease;
}

.dossier-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(198, 156, 77, 0.12), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(10, 14, 20, 0.9), #05070a 70%);
  transition: opacity 0.9s ease;
}

/* When the cover opens, dissolve the opaque backdrop so the real site
   is visible (blurred + darkened) behind the dossier, instead of black */
.dossier.is-opening .dossier-backdrop {
  opacity: 0;
}
.dossier.is-opening {
  background: rgba(5, 7, 10, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dossier-folder {
  position: relative;
  width: min(88vw, 460px);
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transform: rotateX(8deg);
}

.dossier-pages {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.dossier-pages span {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #f5efe0, #e7ddc4);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.dossier-pages span:nth-child(1) { transform: translateZ(-6px) translate(4px, 6px) rotate(1.2deg); }
.dossier-pages span:nth-child(2) { transform: translateZ(-12px) translate(8px, 12px) rotate(2.4deg); }
.dossier-pages span:nth-child(3) { transform: translateZ(-18px) translate(12px, 18px) rotate(3.6deg); }

.dossier-cover {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.dossier-cover-back {
  background: linear-gradient(155deg, #171d27, #0b0f16);
  border: 1px solid rgba(216, 180, 106, 0.15);
  transform: translateZ(-2px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.dossier-cover-front {
  transform-origin: left center;
  background:
    linear-gradient(155deg, #10151d 0%, #171f2b 55%, #0d1218 100%);
  border: 1px solid rgba(216, 180, 106, 0.3);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.7), inset 0 0 60px rgba(216, 180, 106, 0.04);
  padding: 2.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.4s ease;
  will-change: transform;
}
.dossier-cover-front::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(216, 180, 106, 0.18);
  border-radius: 4px;
  pointer-events: none;
}
.dossier-cover-front:hover {
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.7), 0 0 70px rgba(198, 156, 77, 0.15);
}

.dossier-tab {
  position: absolute;
  top: 1.4rem;
  right: -1px;
  background: #c69c4d;
  color: #05070a;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.9rem;
  border-radius: 4px 0 0 4px;
  box-shadow: -4px 4px 14px rgba(0, 0, 0, 0.35);
}

.dossier-stamp {
  margin-top: 2.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: rgba(216, 92, 92, 0.75);
  border: 2px solid rgba(216, 92, 92, 0.55);
  padding: 0.35rem 1rem;
  border-radius: 3px;
  transform: rotate(-6deg);
  opacity: 0.85;
}

.dossier-emblem {
  margin-top: 2.2rem;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid rgba(216, 180, 106, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(216, 180, 106, 0.06);
}
.dossier-emblem span {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #e8c988;
}

.dossier-title {
  margin-top: 1.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  color: #f5e9c8;
}
.dossier-subtitle {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a95a5;
}

.dossier-badges {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.dossier-badges span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8c988;
  border: 1px solid rgba(216, 180, 106, 0.4);
  background: rgba(216, 180, 106, 0.07);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.dossier-meta {
  margin-top: auto;
  padding-top: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.dossier-meta div {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
}
.dossier-meta span {
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dossier-meta strong {
  color: #cbd5e1;
  font-weight: 600;
}

.dossier-cta {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.dossier-cta-line {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, rgba(216, 180, 106, 0.9), transparent);
  animation: dossierPulse 1.8s ease-in-out infinite;
}
.dossier-cta p {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d8b46a;
}
@keyframes dossierPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Enter-site prompt shown once the cover has opened, revealing the site behind */
.dossier-loading {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  width: min(80vw, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.dossier-loading.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.dossier-loading-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cbd5e1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* Opened / exit states driven by JS+GSAP */
.dossier.is-opening .dossier-cover-front {
  cursor: default;
}
.dossier.is-done {
  pointer-events: none;
}

@media (max-width: 640px) {
  .dossier-folder { width: 84vw; }
  .dossier-title { font-size: 1.2rem; }
}

