/* ═══════════════════════════════════════════════════
   NIDO — Enhanced Website CSS
   Palette: #ffeef7 (blush) · #734a88 (purple) ·
             #89b3ad (sage) · #ff6933 (orange) ·
             #ffffea (cream) · #1a1014 (near-black)
   ═══════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blush:   #ffeef7;
  --purple:  #734a88;
  --sage:    #89b3ad;
  --orange:  #ff6933;
  --cream:   #ffffea;
  --peach:   #fde7cf;
  --dark:    #1a1014;
  --mid:     #3d2040;
  --font-head: 'League Spartan', sans-serif;
  --font-body: 'Lato', sans-serif; /* Changed from Inter to Lato */
  --ease: cubic-bezier(.25,.8,.25,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--blush);
  color: var(--dark);
  overflow-x: hidden;
  cursor: none;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* Ensure all uppercase/capital letters use League Spartan */
[class*="uppercase"],
.all-caps,
.text-uppercase {
  font-family: var(--font-head) !important;
}

/* ── Custom Cursor ── */
/* Custom Cursor - REPLACED with simple square cursor (no delay) */
.cursor {
  width: 12px; height: 12px;
  background: var(--orange);
  /* Square shape - angular like NIDO logo */
  border-radius: 0; /* Changed from 50% */
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .08s ease-out; /* Faster, no delay */
}

/* Removed circular follower - speeds up navigation */

/* ── Loader ── */
.loader {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #1a1014 0%, #2d1f2e 100%);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s, visibility .8s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { 
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-logo-img {
  height: 250px; /* Increased from 180px - bigger logo */
  width: auto;
  margin-bottom: 3rem;
  opacity: 0;
  animation: professionalLogoEntrance 2s ease-out forwards;
  filter: brightness(0) invert(1); /* White logo */
}

@keyframes professionalLogoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.2) translateY(60px);
    filter: blur(20px) brightness(0) invert(1);
  }
  30% {
    opacity: 1;
    transform: scale(1.1) translateY(0);
    filter: blur(0) brightness(0) invert(1);
  }
  60% {
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) brightness(0) invert(1);
  }
}

.loader-bar {
  width: 280px; height: 3px;
  background: rgba(255,238,247,.15);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-progress {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  border-radius: 3px;
  animation: loadBar 2s ease-out forwards;
}

@keyframes loadBar { to { width: 100%; } }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.5rem 2.5rem;
  background: rgba(26, 16, 20, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: padding .4s, background .4s, box-shadow .4s;
}

.nav.scrolled {
  padding: 1rem 2.5rem;
  background: rgba(255,238,247,.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(115,74,136,.12);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

/* Center nav links */
.nav-links {
  display: flex; 
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Mobile nav container adjustment */
@media (max-width: 768px) {
  .nav-container {
    gap: 1rem;
  }
  
  /* Ensure proper order: Logo - Toggle - Links */
  .nav-logo {
    order: 1;
  }
  
  .nav-toggle {
    order: 2;
  }
  
  #navLinks {
    order: 3;
  }
}

.nav-logo { 
  display: flex; 
  align-items: center;
  z-index: 1002; /* Ensure logo stays above mobile menu */
}

.logo-img {
  height: 150px; /* Increased from 80px - bigger logo */
  width: auto;
  transition: filter .3s, transform .3s;
}

.nav.scrolled .logo-img { filter: none; }
.nav:not(.scrolled) .logo-img { filter: brightness(0) invert(1); } /* White logo on dark nav */

/* Barcelona label */
.nav-barcelona {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 234, 0.9);
  text-transform: uppercase;
  background: rgba(255, 255, 234, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 0; /* Square - changed from 30px */
  border: 1px solid rgba(255, 255, 234, 0.2);
}

/* Not scrolled - dark background */
.nav:not(.scrolled) .nav-barcelona {
  color: rgba(255, 255, 234, 0.9) !important; /* Cream text */
  background: rgba(255, 255, 234, 0.1);
  border-color: rgba(255, 255, 234, 0.2);
}

/* Scrolled state - light background */
.nav.scrolled .nav-barcelona {
  color: rgba(26, 16, 20, 0.9) !important; /* Dark text */
  background: rgba(26, 16, 20, 0.1);
  border-color: rgba(26, 16, 20, 0.2);
}

/* Hide Barcelona label on mobile */
@media (max-width: 768px) {
  .nav-barcelona { display: none; }
}

.nav-links {
  display: flex; gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile nav links */
@media (max-width: 768px) {
  .nav-links li {
    width: 100%;
    text-align: center;
  }
}

/* Default state - White text on dark background (NOT scrolled) */
.nav:not(.scrolled) .nav-link { 
  color: var(--cream) !important; /* Force white/cream text */
}
.nav:not(.scrolled) .nav-link:hover { 
  color: var(--orange) !important; /* Orange hover on dark bg */
}

/* Inner page default - ALWAYS start with white text on dark background */
body.inner-page .nav:not(.scrolled) .nav-link {
  color: var(--cream) !important;
}
body.inner-page .nav:not(.scrolled) .nav-link:hover {
  color: var(--orange) !important;
}

/* Force white text on dark background for ALL nav states unless scrolled */
.nav .nav-link {
  color: var(--cream) !important;
}

.nav-link {
  font-family: var(--font-head);
  font-size: 0.95rem; /* Increased from .85rem */
  font-weight: 700; /* Increased weight */
  letter-spacing: .14em;
  color: var(--cream); /* White on dark background */
  position: relative;
  transition: color .3s ease;
}

.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1.5px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover { color: var(--orange); }

/* Orange accent link variant */
.nav-link--orange { color: var(--orange) !important; }
.nav-link--orange::after { background: var(--orange) !important; }

/* Nav scrolled state - dark text on light background */
.nav.scrolled .nav-link { 
  color: var(--dark) !important; /* Force dark text on light bg */
}
.nav.scrolled .nav-link:hover { 
  color: var(--purple) !important; /* Purple hover on light bg */
}
.nav.scrolled .nav-link--orange { 
  color: var(--orange) !important; /* Keep orange if has class */
}

/* Services page - ensure white text visible on purple hero */
.page-hero--purple .section-label,
.page-hero--purple .ph-title,
.page-hero--purple .ph-sub {
  color: var(--cream) !important;
}
.nav.scrolled .nav-link:hover:not(.nav-link--orange) { 
  color: var(--purple); 
}

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  z-index: 1002; /* Ensure toggle is above everything */
  position: relative;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 0; /* Square - changed from 2px */
  transition: transform .3s, opacity .3s;
}

/* Mobile nav toggle positioning */
@media (max-width: 768px) {
  .nav-toggle {
    order: 3; /* Move toggle to far right */
  }
}

/* ── Hero ── */
.hero {
  position: relative; height: 100dvh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding-top: 160px; /* Increased space below navigation to prevent overlap */
}

.hero-video-wrap {
  position: absolute; inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(115,74,136,.65) 0%,
    rgba(26,16,20,.5) 60%,
    rgba(255,105,51,.25) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 900px; padding: 2rem 2rem 0;
  margin-top: 2rem;
}

/* Hero content entrance animation */
.hero-eyebrow,
.hero-headline,
.hero-sub,
.hero-ctas {
  animation: heroContentEntrance 1s ease-out backwards;
}

.hero-eyebrow { animation-delay: 0.3s; }
.hero-headline { animation-delay: 0.5s; }
.hero-sub { animation-delay: 0.7s; }
.hero-ctas { animation-delay: 0.9s; }

@keyframes heroContentEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .25em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-headline .line { display: block; }

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,234,.8);
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: .02em;
}

.hero-scroll-indicator {
  position: absolute; 
  bottom: 3rem; /* Aligned with buttons */
  left: 50%; 
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-indicator span {
  font-family: var(--font-head);
  font-size: .65rem; letter-spacing: .2em;
  color: rgba(255,255,234,.6); text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,234,.6), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{transform:scaleY(.5);opacity:.5} 50%{transform:scaleY(1);opacity:1} }

.hero-tag {
  position: absolute; bottom: 2.5rem; right: 2.5rem; z-index: 2;
}
.hero-tag span {
  font-family: var(--font-head);
  font-size: .7rem; letter-spacing: .15em;
  color: rgba(255,255,234,.5);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head);
  font-size: .85rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .9rem 2.2rem;
  border-radius: 0; /* Square buttons */
  border: 2px solid transparent;
  cursor: none;
  transition: background .3s, color .3s, border-color .3s, transform .25s var(--ease-spring), box-shadow .3s;
}
.btn:hover { transform: translateY(-3px); }

.btn-hero {
  background: var(--orange); color: #fff;
  box-shadow: 0 8px 32px rgba(255,105,51,.4);
}
.btn-hero:hover { background: #ff8355; box-shadow: 0 12px 40px rgba(255,105,51,.5); }

.btn-purple { background: var(--purple); color: var(--cream); }
.btn-purple:hover { background: var(--mid); box-shadow: 0 8px 28px rgba(115,74,136,.4); }

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #e55922; box-shadow: 0 8px 28px rgba(255,105,51,.4); }

.btn-full { width: 100%; justify-content: center; }

.btn-outline-dark {
  background: transparent; color: var(--dark);
  border-color: var(--dark);
}
.btn-outline-dark:hover { background: var(--dark); color: var(--blush); }

/* ── Section Label ── */
.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-label.light { color: rgba(255,255,234,.7); }

/* ── Marquee ── */
.marquee-strip {
  background: var(--purple);
  padding: .9rem 0; overflow: hidden;
}

.marquee-track {
  display: flex; gap: 2rem;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream); white-space: nowrap;
}

.marquee-track .dot { color: var(--orange); }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── About ── */
.about {
  background: var(--blush);
  padding: 8rem 2.5rem;
}

.about-container {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}

.about-left { position: relative; }

.about-logo-wrap {
  margin-bottom: 3rem;
}

.about-logo { width: 220px; }

.about-img-stack { position: relative; }

.about-img {
  border-radius: 0; /* Square - changed from 16px */
  box-shadow: 0 24px 60px rgba(115,74,136,.15);
  object-fit: cover;
}

.about-img--top {
  width: 72%; max-height: 440px;
  position: relative; z-index: 2;
}

.about-img--btm {
  width: 55%; max-height: 300px;
  position: absolute; bottom: -40px; right: -20px; z-index: 1;
  border: 4px solid var(--blush);
}

.about-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--dark);
  margin-bottom: 1.8rem;
}
.about-title em { color: var(--purple); }

.about-copy p {
  font-size: 1.05rem; line-height: 1.75;
  color: var(--mid); margin-bottom: 1rem;
}

.about-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

/* ── Services ── */
.services {
  background: var(--purple);
  padding: 8rem 2.5rem 6rem;
}

.services-header { text-align: center; max-width: 700px; margin: 0 auto 5rem; }

.services-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: .92;
  margin-bottom: 1.5rem;
}

.services-intro { font-size: 1.1rem; color: rgba(255,255,234,.7); line-height: 1.6; }

.services-grid {
  max-width: 1300px; margin: 0 auto 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  border: 1.5px solid rgba(255,255,234,.12);
  border-radius: 0; /* Square - changed from 20px */ overflow: hidden;
}

.service-card {
  background: rgba(255,255,234,.04);
  padding: 2.5rem 2rem;
  border: 1.5px solid rgba(255,255,234,.08);
  transition: background .35s, transform .35s var(--ease-spring);
  position: relative; overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--orange);
  transition: height .4s var(--ease);
}
.service-card:hover::before { height: 100%; }
.service-card:hover { background: rgba(255,255,234,.08); transform: translateY(-4px); }

.service-card--wide { grid-column: span 3; }

.service-icon {
  font-size: 1.6rem; color: var(--orange);
  margin-bottom: 1.2rem; display: block;
}

.service-name {
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--cream);
  margin-bottom: .8rem;
}

.service-desc { font-size: .92rem; color: rgba(255,255,234,.65); line-height: 1.65; }

.services-img-row {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.simg { border-radius: 0; /* Square - changed from 14px */ overflow: hidden; aspect-ratio: 4/3; }
.simg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.simg:hover img { transform: scale(1.06); }

/* ── Gallery ── */
.gallery {
  background: var(--peach);
  padding: 8rem 2.5rem;
}

.gallery-header { text-align: center; margin-bottom: 4rem; }

.gallery-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--dark);
}

.gallery-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 1rem;
}

.gitem {
  border-radius: 0; /* Square gallery images */ overflow: hidden;
  position: relative; cursor: none;
}

.gitem img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.gitem:hover img { transform: scale(1.08); }

.gitem-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(115,74,136,.75) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 1.4rem;
  opacity: 0; transition: opacity .35s;
}
.gitem:hover .gitem-overlay { opacity: 1; }

.gitem-overlay span {
  font-family: var(--font-head);
  font-size: .85rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff;
}

.gitem--tall { grid-row: span 2; }
.gitem--wide { grid-column: span 2; }

/* ── Team ── */
.team {
  background: var(--sage);
  padding: 8rem 2.5rem 6rem;
}

.team-header { text-align: center; max-width: 800px; margin: 0 auto 4rem; }

.team-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: var(--purple);
  line-height: .92;
  margin-bottom: 1.5rem;
}
.team-title em { color: var(--dark); }

.team-intro { font-size: 1.1rem; color: rgba(26,16,20,.7); line-height: 1.65; }

.team-founders-label {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--purple);
  text-align: center;
  margin-bottom: 2.5rem;
}

.team-cards {
  max-width: 1200px; margin: 0 auto 5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.team-card {
  background: var(--cream);
  border-radius: 0; /* Square - changed from 20px */ overflow: hidden;
  display: grid; grid-template-rows: 340px 1fr;
  box-shadow: 0 20px 60px rgba(115,74,136,.14);
  transition: transform .35s var(--ease-spring), box-shadow .35s;
}
.team-card:hover { transform: translateY(-8px); box-shadow: 0 32px 80px rgba(115,74,136,.22); }

.team-card-img { overflow: hidden; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .team-card-img img { transform: scale(1.06); }

.team-card-body { padding: 2rem 2rem 2.2rem; }

.team-name {
  font-family: var(--font-head);
  font-size: 1.35rem; font-weight: 800;
  letter-spacing: -.02em;
  color: var(--purple);
  margin-bottom: .3rem;
}

.team-role {
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1rem;
}

.team-bio { font-size: .92rem; color: var(--mid); line-height: 1.7; }

.team-quote {
  max-width: 700px; margin: 0 auto;
  text-align: center;
  border-left: 3px solid var(--orange);
  padding: 1.5rem 2.5rem;
  background: rgba(255,255,234,.3);
  border-radius: 0 16px 16px 0;
}
.team-quote p {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--purple);
  line-height: 1.3;
}

/* Team Skills Pills */
.team-skills {
  margin-top: 2rem;
}

.team-skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.team-skill-pill {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(255,255,234,.07);
  border: 1.5px solid rgba(255,255,234,.18);
  border-radius: 0;
  padding: .75rem 1.6rem;
  text-decoration: none;
  transition: background .3s, border-color .3s, color .3s, transform .25s var(--ease-spring);
}

.team-skill-pill:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-4px);
}

.team-skill-pill .pill-icon {
  width: 20px;
  height: 20px;
  background: var(--orange);
  border-radius: 0;
  flex-shrink: 0;
}

.team-skill-pill:hover .pill-icon {
  background: var(--cream);
}

@media (max-width: 1024px) {
  .team-skills-pills {
    gap: .65rem;
  }

  .team-skill-pill {
    font-size: .8rem;
    padding: .7rem 1.35rem;
  }
}

@media (max-width: 768px) {
  .team-skills {
    margin-top: 1.5rem;
  }

  .team-skills-pills {
    gap: .5rem;
    justify-content: center;
  }

  .team-skill-pill {
    font-size: .75rem;
    padding: .6rem 1.2rem;
    gap: .5rem;
  }

  .team-skill-pill .pill-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .team-skills-pills {
    gap: .45rem;
  }

  .team-skill-pill {
    font-size: .68rem;
    letter-spacing: .08em;
    padding: .55rem .95rem;
  }

  .team-skill-pill .pill-icon {
    width: 14px;
    height: 14px;
  }
}


/* ── Terrace ── */
.terrace {
  background: var(--blush);
  padding: 8rem 2.5rem;
}

.terrace-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}

.terrace-img img {
  border-radius: 0; /* Square - changed from 20px */
  width: 100%; max-height: 520px; object-fit: cover;
  box-shadow: 0 24px 60px rgba(115,74,136,.18);
}

.terrace-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--purple);
  margin-bottom: 1.5rem;
}

.terrace-copy p { font-size: 1rem; color: var(--mid); line-height: 1.7; margin-bottom: 1.2rem; }

.terrace-details { margin: 1.5rem 0; }
.terrace-details li {
  font-size: .95rem; color: var(--mid); padding: .4rem 0;
  padding-left: 1.2rem; position: relative;
}
.terrace-details li::before {
  content: '→'; position: absolute; left: 0; color: var(--orange);
}

.terrace-wa { font-size: .9rem; color: var(--mid); margin-top: 1rem; }
.terrace-wa a { color: var(--purple); font-weight: 600; }
.terrace-wa a:hover { color: var(--orange); }

/* ── Contact ── */
.contact {
  background: var(--purple);
  padding: 8rem 2.5rem;
  position: relative; overflow: hidden;
}

.contact-container {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: start;
  position: relative; z-index: 2;
}

.contact-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: .95;
  margin-bottom: 3rem;
}
.contact-title em { color: var(--orange); }

.contact-details { display: flex; flex-direction: column; gap: 2rem; }

.contact-label {
  font-family: var(--font-head);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,234,.5);
  margin-bottom: .4rem;
}

.contact-link {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700;
  color: var(--cream);
  transition: color .3s;
}
.contact-link:hover { color: var(--orange); }

.contact-social { display: flex; flex-direction: column; gap: .8rem; }

.social-link {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--font-head);
  font-size: .9rem; font-weight: 600;
  color: rgba(255,255,234,.8);
  transition: color .3s;
}
.social-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-link:hover { color: var(--orange); }

/* Contact Form */
.contact-form {
  background: rgba(255,255,234,.07);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,234,.15);
  border-radius: 0; /* Square */
  padding: 2.5rem;
}

.form-title {
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 800;
  color: var(--cream);
  margin-bottom: 1.8rem;
}

.form-group { margin-bottom: 1.3rem; }

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,234,.6);
  margin-bottom: .5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,234,.08);
  border: 1.5px solid rgba(255,255,234,.2);
  border-radius: 0; /* Square */
  padding: .85rem 1.1rem;
  font-family: var(--font-body); font-size: .95rem;
  color: var(--cream);
  outline: none;
  transition: border-color .3s, background .3s;
  cursor: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,234,.35); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: rgba(255,255,234,.12);
}
.form-group textarea { resize: vertical; }

.form-success {
  display: none; margin-top: 1rem;
  font-family: var(--font-head); font-size: .9rem;
  color: #7ee8a2; text-align: center;
}
.form-success.visible { display: block; }

.contact-deco {
  position: absolute; right: -80px; bottom: -40px;
  opacity: .06; z-index: 1;
  pointer-events: none;
}
.contact-deco img { width: 500px; }

/* ── Footer ── */
.footer {
  background: var(--dark);
  padding: 4rem 2.5rem 3rem;
  text-align: center;
}

.footer-inner { max-width: 800px; margin: 0 auto; }

.footer-logo { margin-bottom: 1.5rem; display: flex; justify-content: center; }
.footer-logo img { height: 44px; filter: brightness(0) invert(.9); }

.footer-tagline {
  font-family: var(--font-head);
  font-size: .8rem; letter-spacing: .15em;
  color: rgba(255,255,234,.45); text-transform: uppercase;
  margin-bottom: 2rem;
}

.footer-nav { display: flex; gap: 2.5rem; justify-content: center; margin-bottom: 2rem; }
.footer-nav a {
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,234,.5);
  transition: color .3s;
}
.footer-nav a:hover { color: var(--orange); }

.footer-copy {
  font-size: .78rem; color: rgba(255,255,234,.25);
}

/* ── Back to Top ── */
.back-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  width: 44px; height: 44px;
  background: var(--orange); border: none;
  border-radius: 50%; cursor: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: opacity .35s, transform .35s var(--ease-spring), background .3s;
  box-shadow: 0 8px 24px rgba(255,105,51,.4);
}
.back-top svg { width: 18px; height: 18px; color: #fff; }
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--purple); }

/* ── Reveal Animations ── */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-card,
.reveal-img {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal-up    { transform: translateY(50px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-card  { transform: translateY(40px); transition-delay: var(--delay, 0s); }
.reveal-img   { transform: scale(.96); }

.reveal-up.in,
.reveal-left.in,
.reveal-right.in,
.reveal-card.in,
.reveal-img.in {
  opacity: 1;
  transform: none;
}

/* ── Field Error State ── */
.field-error {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(255,105,51,.18) !important;
  animation: fieldShake .4s var(--ease);
}
@keyframes fieldShake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-6px); }
  40%,80%  { transform: translateX(6px); }
}

/* ══════════════════════════════════════════
   NIDO POPUP — Success / Error Modal
   ══════════════════════════════════════════ */
.nido-popup {
  position: fixed; inset: 0; z-index: 20000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(26,16,20,.7);
  backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.nido-popup.open {
  opacity: 1; visibility: visible;
}

.nido-popup-card {
  position: relative;
  width: 100%; max-width: 480px;
  background: var(--orange);
  border-radius: 0; /* Square */
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 40px 100px rgba(26,16,20,.35);
  transform: translateY(40px) scale(.96);
  transition: transform .5s var(--ease-spring), opacity .4s;
  overflow: hidden;
}
.nido-popup.open .nido-popup-card {
  transform: translateY(0) scale(1);
}

/* Top accent bar */
.nido-popup-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
}
.nido-popup--success .nido-popup-card::before { background: linear-gradient(90deg, var(--purple), var(--orange)); }
.nido-popup--error   .nido-popup-card::before { background: linear-gradient(90deg, #e55555, var(--orange)); }

.nido-popup-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 36px; height: 36px;
  background: rgba(26,16,20,.06);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .25s, transform .25s;
  color: var(--mid);
}
.nido-popup-close svg { width: 16px; height: 16px; }
.nido-popup-close:hover { background: rgba(26,16,20,.12); transform: rotate(90deg); }

/* Brand logo */
.nido-popup-brand { margin-bottom: 1.5rem; }
.popup-brand-logo {
  height: 32px; width: auto;
  filter: brightness(0) saturate(0) opacity(.25);
}

/* Icon circle */
.nido-popup-icon-wrap {
  width: 80px; height: 80px;
  margin: 0 auto 1.5rem;
}

/* SVG check animation */
.popup-svg { width: 80px; height: 80px; }

.popup-circle {
  fill: none; stroke-width: 2;
  stroke-dasharray: 175; stroke-dashoffset: 175;
  stroke-linecap: round;
  animation: drawCircle .6s .1s var(--ease) forwards;
}
.popup-circle--success { stroke: var(--purple); }
.popup-circle--error   { stroke: #d84040; }

.popup-checkmark {
  stroke: var(--purple); fill: none;
  stroke-dasharray: 60; stroke-dashoffset: 60;
  stroke-linecap: round; stroke-linejoin: round;
  animation: drawCheck .4s .7s var(--ease) forwards;
}
.popup-xline {
  stroke: #d84040; fill: none;
  stroke-dasharray: 30; stroke-dashoffset: 30;
  stroke-linecap: round;
  animation: drawX .35s .7s var(--ease) forwards;
}
.popup-xline:nth-child(3) { animation-delay: .85s; }

@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck  { to { stroke-dashoffset: 0; } }
@keyframes drawX      { to { stroke-dashoffset: 0; } }

/* Text */
.nido-popup-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 900; letter-spacing: -.02em;
  color: var(--dark);
  margin-bottom: .75rem;
}

.nido-popup-sub {
  font-size: .95rem; color: var(--mid);
  line-height: 1.7; margin-bottom: 2rem;
}

.nido-popup-actions { display: flex; justify-content: center; }

.nido-popup-btn {
  min-width: 180px;
  cursor: pointer !important;
}

/* Confetti */
.nido-popup-confetti {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
  border-radius: 0; /* Square */
}
.confetti-dot {
  position: absolute; top: -10px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(-10px) rotate(0deg) scale(1);   opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(500px) rotate(540deg) scale(.5); opacity: 0; }
}

/* Mobile popup */
@media (max-width: 480px) {
  .nido-popup-card { padding: 2.5rem 1.5rem 2rem; }
  .nido-popup-title { font-size: 1.3rem; }
}

/* ── Mobile ── */
@media (max-width: 1024px) {
  .about-container,
  .terrace-inner,
  .contact-container { grid-template-columns: 1fr; gap: 4rem; }

  .about-img--btm { display: none; }
  .about-img--top { width: 100%; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card--wide { grid-column: span 2; }

  .team-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 1.2rem 1.5rem; }
  .nav.scrolled { padding: .9rem 1.5rem; }

  .nav-links {
    position: fixed; 
    top: 0; 
    right: 0; 
    bottom: 0; 
    left: 0;
    background: var(--dark);
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 999;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { transform: translateX(0); }
  
  /* Mobile menu links - ALWAYS white on dark background (ALL PAGES) */
  .nav-links.open .nav-link { 
    font-size: 2rem; 
    color: var(--cream) !important; /* Force white text in mobile menu */
  }
  .nav-links.open .nav-link::after { display: none; }
  .nav-links.open .nav-link:hover { 
    color: var(--orange) !important; /* Orange hover in mobile menu */
  }
  
  /* Extra specificity for inner pages mobile menu */
  body.inner-page .nav-links.open .nav-link {
    color: var(--cream) !important;
  }
  body.inner-page .nav-links.open .nav-link:hover {
    color: var(--orange) !important;
  }
  
  .nav-toggle { display: flex; z-index: 1001; }
  .nav:not(.scrolled) .nav-toggle span { background: var(--cream); }
  .nav.scrolled .nav-toggle span { background: var(--dark); }

  .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); }

  .hero-headline { font-size: clamp(2.4rem, 10vw, 4rem); }

  .services-grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: span 1; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .gitem--tall { grid-row: span 1; }
  .gitem--wide { grid-column: span 2; }

  .services-img-row { grid-template-columns: 1fr; }

  .about { padding: 5rem 1.5rem; }
  .services { padding: 5rem 1.5rem 4rem; }
  .gallery { padding: 5rem 1.5rem; }
  .team { padding: 5rem 1.5rem; }
  .terrace { padding: 5rem 1.5rem; }
  .contact { padding: 5rem 1.5rem; }

  .hero-tag { display: none; }

  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  .btn, input, textarea, button { cursor: pointer; }
}

@media (max-width: 480px) {
  .nav-logo .logo-img { height: 36px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gitem--wide { grid-column: span 1; }
  .about-ctas { flex-direction: column; }
  .footer-nav { flex-wrap: wrap; gap: 1.5rem; }
}
