:root {
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --bg: #080808;
  --text: #f8f8f8;
  --muted: #b0b0b0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8,8,8,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,162,39,0.12);
  transition: background .3s;
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nav nav { display: flex; gap: 32px; }
.nav nav a { font-size: 0.9rem; color: #ccc; transition: color .2s; }
.nav nav a:hover { color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: #fff; margin: 5px 0; }

/* Hero - Cinematic with parallax */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6vh;
  overflow: hidden;
  margin-bottom: 0;
}
.hero-bg {
  position: absolute;
  inset: -10% 0 0 0;
  background: url('images/f1.jpg') center 30%/cover no-repeat;
  will-change: transform;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.5) 0%,
    rgba(8,8,8,0.6) 40%,
    rgba(8,8,8,0.9) 100%
  );
  z-index: 1;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, transparent 30%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 8vw;
  max-width: 900px;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(4.2rem, 10vw, 8rem);
  line-height: 0.86;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 8px 32px rgba(0,0,0,0.75);
}
.hero h1 span {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}
.hero-sub {
  font-size: 1.4rem;
  color: #ffffff;
  max-width: 540px;
  margin-bottom: 40px;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 6px 24px rgba(0,0,0,0.7);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 15px 34px;
  background: var(--gold);
  color: #111;
  border-radius: 3px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s, background 0.3s;
  animation: btnPulse 2.5s ease-in-out infinite;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn:hover {
  background: var(--gold-light);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.45);
}
.btn:hover::after {
  transform: translateX(100%);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  animation: none;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.25);
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(201, 162, 39, 0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  right: 50px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #aaa;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 70px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Sections with faded backgrounds */
.about, .work, .team, .services, .contact, .gallery {
  position: relative;
  padding: 80px 0 140px;
  background: #0a0a0a;
  margin-top: 0;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
}
.about::before,
.work::before,
.team::before,
.gallery::before {
  content: '';
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform: translateY(var(--parallax-y, 0px));
}
.about::before { background-image: url('images/am1.jpg'); opacity: 0.08; }
.work::before { background-image: url('images/f2.jpg'); }
.team::before { background-image: url('images/field.jpg'); }
.gallery::before { background-image: url('images/am3.jpg'); opacity: 0.1; }

.about .wrap, .work .wrap, .team .wrap, .services .wrap, .contact .wrap {
  position: relative;
  z-index: 1;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s ease forwards;
}
.reveal:nth-child(2) { animation-delay: 0.15s; }
.reveal:nth-child(3) { animation-delay: 0.3s; }
.reveal:nth-child(4) { animation-delay: 0.45s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Unique entry animations for all boxes */
.work-grid article,
.member,
.vision-box,
.mission-box,
.contact-form {
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s, border-color 0.4s;
}

/* Work cards */
.work-grid article:nth-child(1) { transform: translateY(50px) scale(0.92); }
.work-grid article:nth-child(2) { transform: translateX(70px); }
.work-grid article:nth-child(3) { transform: translateX(-70px); }
.work-grid article:nth-child(4) { transform: translateY(40px) rotate(1.5deg); }

.work-grid article.animate-in:nth-child(1) { animation: popUp 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.work-grid article.animate-in:nth-child(2) { animation: slideInRight 0.9s ease forwards; }
.work-grid article.animate-in:nth-child(3) { animation: slideInLeft 0.9s ease forwards; }
.work-grid article.animate-in:nth-child(4) { animation: fadeRotate 1s ease forwards; }

/* Team cards - varied */
.member:nth-child(3n+1) { transform: translateY(60px) scale(0.9); }
.member:nth-child(3n+2) { transform: translateX(-60px); }
.member:nth-child(3n) { transform: translateX(60px); }

.member.animate-in:nth-child(3n+1) { animation: popUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.member.animate-in:nth-child(3n+2) { animation: slideInLeft 0.9s ease forwards; }
.member.animate-in:nth-child(3n) { animation: slideInRight 0.9s ease forwards; }

/* Vision / Mission */
.vision-box { transform: translateX(-50px); }
.mission-box { transform: translateX(50px); }
.vision-box.animate-in { animation: slideInLeft 0.9s ease forwards; }
.mission-box.animate-in { animation: slideInRight 0.9s ease forwards; }

/* Contact form */
.contact-form { transform: translateY(50px) scale(0.95); }
.contact-form.animate-in { animation: popUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* Hover overrides */
.work-grid article:hover,
.member:hover,
.vision-box:hover,
.mission-box:hover,
.contact-form:hover {
  transform: translateY(-12px) scale(1.03) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

/* Continuous soft drift on section backgrounds */
@keyframes drift {
  0%, 100% { transform: translateY(0) scale(1.05); }
  50% { transform: translateY(-20px) scale(1.08); }
}
.about::before,
.work::before,
.team::before {
  animation: drift 18s ease-in-out infinite;
}

/* Hero content entrance */
.hero-content {
  animation: heroIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content .eyebrow { animation: fadeUp 1s 0.2s both; }
.hero-content h1 { animation: fadeUp 1.1s 0.35s both; }
.hero-content .hero-sub { animation: fadeUp 1.1s 0.5s both; }
.hero-content .hero-actions { animation: fadeUp 1.1s 0.65s both; }
.section-head {
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 14px;
}
.section-head {
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 14px;
}
.section-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  animation: lineGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards, glowPulse 2.2s ease-in-out infinite 1.2s;
}
.section-head.center::after {
  transform-origin: center;
}
@keyframes lineGrow {
  to { transform: scaleX(1); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(201, 162, 39, 0.4); }
  50% { box-shadow: 0 0 12px rgba(201, 162, 39, 0.85); }
}
.section-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}
.label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* About */
.about .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; }
.about h2 { font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1.02; margin-bottom: 24px; }
.about p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; }
.vision-box, .mission-box {
  background: rgba(20,20,20,0.75);
  backdrop-filter: blur(8px);
  padding: 32px;
  border-left: 2px solid var(--gold);
  margin-bottom: 20px;
}
.vision-box h3, .mission-box h3 { font-size: 1.6rem; margin-bottom: 10px; }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.project {
  background: rgba(16,16,16,0.85);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,0.12);
  transition: transform 0.4s, box-shadow 0.4s;
}
.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.project-media img,
.project-media video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #111;
}
.project-info {
  padding: 20px;
}
.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.project-info p {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-media img,
  .project-media video { height: 240px; }
}

/* Gallery */
.gallery { padding: 80px 0 120px; background: #0a0a0a; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform .5s ease, opacity .4s;
  opacity: 0.92;
}
.gallery-grid img:hover { transform: scale(1.04); opacity: 1; }

/* Team */
.team-intro { max-width: 620px; color: var(--muted); margin-top: 12px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
/* Profile Modal */
.profile-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.profile-modal.open {
  display: flex;
}
.profile-modal-content {
  background: #111;
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 28px;
  position: relative;
  text-align: center;
}
.profile-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.profile-modal-content img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  border: 2px solid var(--gold);
}
.profile-details h3 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.profile-details span {
  color: var(--gold);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 16px;
}
.profile-details p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 18px;
}
.read-aloud-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}
.read-aloud-btn:hover {
  background: var(--gold);
  color: #111;
}
.read-aloud-btn.playing {
  background: var(--gold);
  color: #111;
}
.member {
  background: rgba(16,16,16,0.8);
  backdrop-filter: blur(10px);
  padding: 28px;
  border: 1px solid rgba(201,162,39,0.12);
  border-radius: 6px;
  transition: transform .3s, border-color .3s;
  cursor: pointer;
}
.member:hover { transform: translateY(-6px); border-color: rgba(201,162,39,0.4); }
.member-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.member h3 { font-size: 1.3rem; margin: 0; }
.member span { font-size: 0.8rem; color: var(--gold); }
.member p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.services, .contact {
  position: relative;
  overflow: hidden;
}
.services::before, .contact::before {
  content: '';
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform: translateY(var(--parallax-y, 0px));
  animation: drift 20s ease-in-out infinite;
}
.services::before { background-image: url('images/camtest.jpg'); }
.contact::before { background-image: url('images/am2.jpg'); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.service {
  padding: 40px 36px;
  background: rgba(16,16,16,0.82);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(201,162,39,0.15);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.55s, border-color 0.4s;
}
.service:nth-child(1) { transform: translateY(60px) scale(0.9); }
.service:nth-child(2) { transform: translateX(-80px); }
.service:nth-child(3) { transform: translateX(80px); }
.service:nth-child(4) { transform: translateY(40px) rotate(-2deg); }

.service.animate-in:nth-child(1) { animation: popUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.service.animate-in:nth-child(2) { animation: slideInLeft 0.9s ease forwards; }
.service.animate-in:nth-child(3) { animation: slideInRight 0.9s ease forwards; }
.service.animate-in:nth-child(4) { animation: fadeRotate 1s ease forwards; }

@keyframes popUp {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRotate {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.service:hover {
  transform: translateY(-16px) scale(1.04) !important;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
  border-color: rgba(201,162,39,0.5);
}

.contact-form {
  background: rgba(16,16,16,0.6);
  backdrop-filter: blur(10px);
  padding: 32px;
  border-radius: 8px;
  border: 1px solid rgba(201,162,39,0.15);
  transition: transform 0.5s, box-shadow 0.5s;
}
.contact-form:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.service h3 { font-size: 1.65rem; margin-bottom: 10px; }
.service p { color: var(--muted); }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; }
.contact h2 { font-size: clamp(2.6rem, 4vw, 3.8rem); margin-bottom: 14px; }
.contact-details { margin-top: 28px; }
.contact-details a { color: var(--gold); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  background: rgba(20,20,20,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 15px 16px;
  color: #fff;
  font-family: inherit;
  border-radius: 4px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form button { align-self: flex-start; margin-top: 6px; }

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: waPulse 2.5s ease-in-out infinite;
}
.whatsapp-btn svg {
  width: 26px;
  height: 26px;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7); }
}

@media (max-width: 600px) {
  .whatsapp-btn {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-btn svg {
    width: 22px;
    height: 22px;
  }
}

.form-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--gold);
  min-height: 1.2em;
}

/* Responsive */
@media (max-width: 900px) {
  .about .wrap, .contact-inner, .team-grid, .services-grid, .work-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .nav nav { display: none; }
  .menu-btn { display: block; }
  .hero-content { padding: 0 32px; }
  .gallery-grid img { height: 220px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 22px; }
  .hero h1 { font-size: 3.2rem; line-height: 0.95; }
  .section-head h2, .about h2 { font-size: 2rem; line-height: 1.15; }
  .about, .work, .team, .services, .contact { padding: 70px 0; }
}
