:root {
  --bg: #0b0b0b;
  --bg-soft: #131313;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.14);
  --white: #f4f1ea;
  --muted: #ffffff;
  --glass-bg: rgba(0, 0, 0, 0.607);
  --glass-border: rgba(212, 175, 55, 0.18);
  --maxw: 1240px;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.gold { color: var(--gold); }

/* ---------- Cosmic custom cursor ---------- */
@media (pointer: fine) {
  .has-custom-cursor,
  .has-custom-cursor a,
  .has-custom-cursor button,
  .has-custom-cursor input,
  .has-custom-cursor select,
  .has-custom-cursor textarea { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; will-change: transform;
  transform: translate(-50%, -50%);
  margin-left: -4px; margin-top: -4px;
  transition: opacity 0.3s ease;
}
.cursor-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold), 0 0 22px rgba(212, 175, 55, 0.7);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.3s ease;
}
.cursor-ring {
  width: 38px; height: 38px; border-radius: 50%;
  margin-left: -19px; margin-top: -19px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25), inset 0 0 10px rgba(212, 175, 55, 0.12);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
}
.cursor-hover .cursor-ring {
  width: 60px; height: 60px; margin-left: -30px; margin-top: -30px;
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.45), inset 0 0 16px rgba(212, 175, 55, 0.2);
}
.cursor-hover .cursor-dot {
  width: 12px; height: 12px;
  background: #f0d878;
}
.cursor-down .cursor-ring { width: 26px; height: 26px; margin-left: -13px; margin-top: -13px; }
.cursor-spark {
  position: fixed; z-index: 9998; width: 4px; height: 4px;
  margin-left: -2px; margin-top: -2px; border-radius: 50%;
  background: var(--gold); pointer-events: none;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.9);
  animation: cursor-spark 0.7s ease-out forwards;
}
@keyframes cursor-spark {
  0% { opacity: 0.9; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2); }
}

/* ---------- Particles / progress ---------- */
#particles {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.85;
}
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), #f0d878);
  z-index: 1000;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 2rem; border-radius: 50px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), background 0.4s, color 0.4s, box-shadow 0.4s;
}
.btn--gold { background: var(--gold); color: #0b0b0b; }
.btn--gold:hover { box-shadow: 0 12px 40px var(--gold-soft); transform: translateY(-3px); }
.btn--ghost { border-color: var(--glass-border); color: var(--white); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--gold-soft); border-color: var(--gold); transform: translateY(-3px); }
.btn--full { width: 100%; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.2rem, 4vw, 3rem);
  transition: padding 0.4s, background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,175,55,0.12);
}
.nav__logo { display: flex; align-items: center; gap: 0.6rem; }
.nav__logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--font-head); font-weight: 700; border-radius: 50%;
  letter-spacing: 0.02em;
}
.nav__logo-text { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: 0.04em; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: 0.85rem; letter-spacing: 0.05em; color: var(--muted);
  position: relative; transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.35s;
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav__toggle span { width: 26px; height: 2px; background: var(--white); transition: 0.3s; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 850;
  background: rgba(11,11,11,0.97); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-head); font-size: 1.8rem; }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 4vw, 3rem); max-width: var(--maxw); margin: 0 auto; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(3rem, 6vw, 5rem); }
.section__eyebrow {
  font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.section__title {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: 0.01em;
}

.section__sub_title {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.2rem, 5vw, 1.8rem); line-height: 1.1; letter-spacing: 0.01em;
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { z-index: 1; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to right, rgba(11,11,11,0.92), rgba(11,11,11,0.45) 60%, rgba(11,11,11,0.7)),
    radial-gradient(circle at 70% 30%, rgba(212,175,55,0.12), transparent 55%);
}
.hero__content {
  position: relative; z-index: 3;
  padding: 0 clamp(1.2rem, 6vw, 6rem); max-width: 900px;
}
.hero__eyebrow {
  font-size: 0.85rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1.02; letter-spacing: 0.01em;
  margin-bottom: 1.8rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__sub { max-width: 540px; color: var(--muted); font-size: 1.05rem; margin-bottom: 2.5rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line { width: 1px; height: 50px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100%{ transform: scaleY(0.4); opacity:0.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__image { position: relative; border-radius: 6px; overflow: hidden; }
.about__image img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.about__badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem; right: 1.2rem;
  padding: 1.2rem 1.4rem; border-radius: 4px;
  display: flex; align-items: baseline; gap: 0.3rem; flex-wrap: wrap;
  font-family: var(--font-head);
}
.about__badge-num { font-size: 2.8rem; line-height: 1; }
.about__badge .gold { font-size: 2.4rem; }
.about__badge-label { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); width: 100%; margin-top: 0.3rem; }
.about__text { color: var(--muted); margin: 1.5rem 0 2.5rem; font-size: 1.05rem; }
.timeline { list-style: none; position: relative; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold), transparent); }
.timeline__item { position: relative; display: flex; gap: 1.2rem; margin-bottom: 1.8rem; }
.timeline__item::before { content: ""; position: absolute; left: -1.6rem; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.timeline__year { font-family: var(--font-head); font-size: 1.3rem; min-width: 70px; }
.timeline__item h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.timeline__item p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  padding: 2.5rem 2rem; border-radius: 8px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d; will-change: transform;
}
.service-card:hover { border-color: var(--gold); box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.service-card__icon { width: 54px; height: 54px; color: var(--gold); margin-bottom: 1.5rem; }
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; margin-bottom: 0.7rem; }
.service-card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Industries (horizontal) ---------- */
.industries { position: relative; z-index: 1; width: 100%; }
.industries__pin { height: 100vh; height: 100dvh; overflow: hidden; display: flex; align-items: center; }
.industries__track { display: flex; gap: 2rem; padding: 0 clamp(1.2rem, 4vw, 3rem); will-change: transform; }
.industries__intro { flex: 0 0 auto; width: min(80vw, 480px); display: flex; flex-direction: column; justify-content: center; }
.industries__hint { color: var(--gold); margin-top: 1.5rem; letter-spacing: 0.15em; font-size: 0.85rem; }
.industry-panel {
  flex: 0 0 auto; width: min(75vw, 380px); height: 70vh;
  border: 1px solid var(--glass-border); border-radius: 10px;
  padding: 2.5rem; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  position: relative; overflow: hidden; transition: border-color 0.4s, transform 0.4s;
}
.industry-panel__img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.industry-panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,11,0.95), rgba(11,11,11,0.2) 60%, transparent); z-index: 1;
}
.industry-panel:hover { border-color: var(--gold); transform: translateY(-6px); }
.industry-panel:hover .industry-panel__img { transform: scale(1.08); }
.industry-panel__num { position: absolute; top: 1.5rem; right: 2rem; font-family: var(--font-head); font-size: 4rem; color: var(--gold-soft); z-index: 2; }
.industry-panel h3 { position: relative; z-index: 2; font-family: var(--font-head); font-weight: 600; font-size: 2rem; margin-bottom: 0.6rem; }
.industry-panel p { position: relative; z-index: 2; color: var(--muted); }

/* ---------- Projects masonry ---------- */
.masonry { columns: 3; column-gap: 1.2rem; }
.masonry__item { break-inside: avoid; margin-bottom: 1.2rem; position: relative; overflow: hidden; border-radius: 8px; }
.masonry__item img { width: 100%; transition: transform 0.7s cubic-bezier(.2,.8,.2,1); aspect-ratio: 4/3; object-fit: cover; }
.masonry__item.tall img { aspect-ratio: 3/4; }
.masonry__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem;
  font-family: var(--font-head); font-size: 1.3rem;
  background: linear-gradient(transparent, rgba(11,11,11,0.85));
  transform: translateY(10px); opacity: 0; transition: 0.4s;
}
.masonry__item:hover img { transform: scale(1.08); }
.masonry__item:hover figcaption { transform: translateY(0); opacity: 1; }

/* ---------- Stats ---------- */
.stats__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; text-align: center; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); padding: 3rem 0; }
.stat__num, .stat .gold { font-family: var(--font-head); font-size: clamp(3rem, 6vw, 5rem); font-weight: 600; line-height: 1; }
.stat p { color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.85rem; margin-top: 0.8rem; }

/* ---------- Testimonials ---------- */
.testimonials { overflow: hidden; }
.testimonials__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.testimonials__track { display: flex; gap: 1.5rem; width: max-content; }
.testimonial { flex: 0 0 auto; width: min(85vw, 420px); padding: 2.2rem; border-radius: 10px; }
.testimonial__stars { display: flex; gap: 4px; margin-bottom: 1.2rem; }
.testimonial__stars span { width: 16px; height: 16px; color: var(--gold); display: inline-block; }
.testimonial p { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.4; margin-bottom: 1.5rem; }
.testimonial footer strong { display: block; }
.testimonial footer span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info p { color: var(--muted); margin-bottom: 1.5rem; }
.contact__info .section__title { text-align: left; margin-bottom: 1.2rem; }
.contact__info .section__head { text-align: left; }
.contact__details { list-style: none; margin: 1.5rem 0 2rem; }
.contact__details li { padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.contact__details .gold { display: inline-block; width: 70px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.contact__map { border-radius: 10px; overflow: hidden; border: 1px solid var(--glass-border); height: 220px; }
.contact__map iframe { width: 100%; height: 100%; border: 0; }
.contact__form { padding: 2.5rem; border-radius: 12px; display: flex; flex-direction: column; gap: 1.5rem; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px; padding: 1.1rem 1rem; color: var(--white); font-family: var(--font-body);
  font-size: 1rem; transition: border-color 0.3s;
}
.field textarea { resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--bg-soft); color: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field label {
  position: absolute; left: 1rem; top: 1.1rem; color: var(--muted);
  pointer-events: none; transition: 0.25s; font-size: 1rem;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: -0.55rem; left: 0.7rem; font-size: 0.72rem; color: var(--gold);
  background: var(--bg); padding: 0 0.4rem;
}
.field .label--static { position: static; display: block; margin-bottom: 0.5rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.form__status { font-size: 0.9rem; color: var(--gold); min-height: 1rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--glass-border); padding: 2.5rem clamp(1.2rem,4vw,3rem); position: relative; z-index: 1; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.footer__inner p { color: var(--muted); font-size: 0.9rem; }

/* ---------- WhatsApp ---------- */
.whatsapp {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 950;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4); transition: transform 0.3s;
  animation: floatY 3s ease-in-out infinite;
}
.whatsapp svg { width: 30px; height: 30px; }
.whatsapp:hover { transform: scale(1.1); }

.logo {
 height: 60px;
 width: 85px;;
}


@keyframes floatY { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-8px) } }

/* ---------- Animation helpers ---------- */
.fade-up, .reveal-img { will-change: transform, opacity; }
.reveal-img img { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__image { max-width: 480px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .services__grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .stats__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .industries { padding-top: 4rem; padding-bottom: 2rem; }
  .industries__pin { height: auto; display: block; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .industries__pin::-webkit-scrollbar { display: none; }
  .industries__track { padding: 1rem clamp(1.2rem, 4vw, 3rem) 2rem; }
  .industries__intro { scroll-snap-align: center; width: min(85vw, 400px); }
  .industry-panel { scroll-snap-align: center; width: min(85vw, 320px); height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
