/* UI/UX audit pass: predictable motion, consistent spacing, and mobile-first footer layout. */
:root { --page-gutter: clamp(1.25rem, 5vw, 5rem); --section-space: clamp(4.5rem, 9vw, 8rem); }

#psc-preloader { position: fixed; inset: 0; z-index: 9999; display: grid; align-content: center; justify-items: center; gap: 24px; overflow: hidden; background: radial-gradient(ellipse at 50% 48%, rgb(23 39 64 / 68%), transparent 48%), #0b111c; opacity: 1; visibility: visible; transition: opacity .45s ease, visibility .45s ease; }
body.psc-preloader-active { overflow: hidden; }
#psc-preloader.is-loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.psc-preloader-logo-wrap { width: min(280px, 72vw); padding: 13px 17px; border: 1px solid rgb(247 181 0 / 24%); border-radius: 12px; background: linear-gradient(145deg, #fffefa, #f1f3f5); box-shadow: 0 18px 55px rgb(0 0 0 / 30%), 0 0 38px rgb(247 181 0 / 8%); animation: psc-preloader-arrive .65s cubic-bezier(.22,.61,.36,1) both; }
.psc-preloader-logo { display: block; width: 100%; height: auto; }
.psc-preloader-track { position: relative; width: 118px; height: 2px; overflow: hidden; border-radius: 99px; background: rgb(255 255 255 / 16%); }
.psc-preloader-track span { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d99500, #ffd34d); box-shadow: 0 0 12px rgb(247 181 0 / 55%); animation: psc-preloader-progress 1.15s cubic-bezier(.65,0,.35,1) infinite alternate; }
@keyframes psc-preloader-progress { from { transform: translateX(-105%); } to { transform: translateX(250%); } }
@keyframes psc-preloader-arrive { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { #psc-preloader, .psc-preloader-track span, .psc-preloader-logo-wrap { transition: none; animation: none; } }

#home .hero-photo { transform: scale(1.1) translate3d(1.2%,0,0); transition: opacity 1.2s cubic-bezier(.22,.61,.36,1), transform 5s cubic-bezier(.2,.7,.2,1); }
#home .hero-photo.is-active { transform: scale(1.02) translate3d(-1.2%,-.4%,0); }
.hero-rotation-control { min-height: 42px; }

/* The original sticky panel traps short mobile viewports while scrolling. */
@media (max-width: 767px) {
  #about { position: relative; top: auto; min-height: 650px; }
  #about, #people { padding-top: 7.5rem; padding-bottom: 6.5rem; }
  #about .grid { gap: 2.25rem; }
  #people .mb-12 { margin-bottom: 2.25rem; }
  #home .hero-copy { padding-inline: var(--page-gutter); }
  #home .hero-copy h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); line-height: 1.22; letter-spacing: .035em; }
  .hero-rotation-control { right: 1.25rem; bottom: 1.5rem; padding-inline: .75rem; }
  .hero-rotation-label { display: none; }
  #expertise, #clients, #projects, #faq, #contact { padding-block: var(--section-space); }
  #expertise .grid.gap-5.py-12, #clients .grid.gap-5.py-12, #contact .grid.gap-5.py-12, #projects .flex.py-12 { padding-block: 0 2.25rem; }
  #projects article h3 { margin-top: 1.15rem; }
  #projects article p { line-height: 1.6; }
}

/* Sections reveal as users move through the page, including in touch-only views. */
.motion-target { opacity: 0; transform: translateY(26px); transition: opacity .68s ease, transform .68s cubic-bezier(.22,.61,.36,1); }
.motion-target.is-visible { opacity: 1; transform: none; }
.motion-target.motion-card { transition-delay: calc(var(--reveal-order, 0) * 75ms); }
@media (prefers-reduced-motion: reduce) { .motion-target, .motion-target.is-visible { opacity: 1; transform: none; transition: none; } }

:is(#about .about-heading-motion, #people .promise-heading-motion) { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .75s ease, transform .75s cubic-bezier(.22,.61,.36,1); }
:is(#about .about-heading-motion, #people .promise-heading-motion).is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { :is(#about .about-heading-motion, #people .promise-heading-motion), :is(#about .about-heading-motion, #people .promise-heading-motion).is-visible { opacity: 1; transform: none; transition: none; } }

#expertise .services-motion-item { opacity: 0; transform: translate3d(0, 34px, 0) scale(.985); transition: opacity .65s ease, transform .7s cubic-bezier(.22,.61,.36,1); transition-delay: calc(var(--service-reveal-order, 0) * 55ms); }
#expertise .services-motion-item.is-visible { opacity: 1; transform: none; }
#expertise .service-card { border: 1px solid rgb(247 181 0 / 16%); border-radius: 1.15rem; box-shadow: 0 16px 38px rgb(0 0 0 / 30%), 0 0 0 1px rgb(247 181 0 / 4%); transition: opacity .65s ease, transform .7s cubic-bezier(.22,.61,.36,1), border-color .3s ease, box-shadow .35s ease; }
#expertise .service-card.is-visible { box-shadow: 0 18px 42px rgb(0 0 0 / 38%), 0 0 20px rgb(247 181 0 / 7%); }
#expertise .service-card:is(:hover, :focus-visible, .is-engaged) { z-index: 2; border-color: rgb(247 181 0 / 58%); box-shadow: 0 24px 48px rgb(0 0 0 / 48%), 0 0 28px rgb(247 181 0 / 20%); transform: translateY(-7px) scale(1.012); outline: none; }
#expertise .service-card > .service-card-image { transition: opacity .55s ease, transform .8s cubic-bezier(.22,.61,.36,1), filter .55s ease; }
#expertise .service-card:is(:hover, :focus-visible, .is-engaged) > .service-card-image { opacity: .58 !important; transform: scale(1.12); filter: saturate(1.15) brightness(1.08); }
#expertise .service-card > .service-card-overlay { transition: opacity .45s ease; }
#expertise .service-card:is(:hover, :focus-visible, .is-engaged) > .service-card-overlay { opacity: .78; }
#expertise .service-card > .service-card-content { padding: .85rem 1rem; border: 1px solid rgb(255 255 255 / 12%); border-radius: .75rem; background: linear-gradient(110deg, rgb(5 12 22 / 86%), rgb(5 12 22 / 52%)); backdrop-filter: blur(5px); }
#expertise .service-card h3 { transition: color .3s ease, letter-spacing .35s ease, transform .35s cubic-bezier(.22,.61,.36,1), text-shadow .35s ease; }
#expertise .service-card:is(:hover, :focus-visible, .is-engaged) h3 { color: #ffd34d !important; letter-spacing: .045em; transform: translateX(5px); text-shadow: 0 0 18px rgb(247 181 0 / 42%); }
#expertise .service-card:focus-visible { outline: 2px solid #ffd34d; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { #expertise .services-motion-item, #expertise .services-motion-item.is-visible { opacity: 1; transform: none; transition: none; } #expertise .service-card, #expertise .service-card:is(:hover, :focus-visible, .is-engaged), #expertise .service-card > .service-card-image, #expertise .service-card h3 { transition: none; transform: none; } }

#clients .departments-motion-item { opacity: 0; transform: translate3d(0, 32px, 0) scale(.99); transition: opacity .65s ease, transform .7s cubic-bezier(.22,.61,.36,1); transition-delay: calc(var(--department-reveal-order, 0) * 90ms); }
#clients .departments-motion-item.is-visible { opacity: 1; transform: none; }
#clients article { position: relative; overflow: hidden; border: 1px solid rgb(247 181 0 / 15%); border-radius: 1.15rem; background: linear-gradient(145deg, #24272d, #191c22) !important; box-shadow: 0 16px 38px rgb(0 0 0 / 34%), 0 0 0 1px rgb(247 181 0 / 3%); transition: opacity .65s ease, transform .7s cubic-bezier(.22,.61,.36,1), border-color .3s ease, box-shadow .35s ease; }
#clients article:is(:hover, :focus-within) { z-index: 2; border-color: rgb(247 181 0 / 55%); box-shadow: 0 24px 48px rgb(0 0 0 / 48%), 0 0 28px rgb(247 181 0 / 18%); transform: translateY(-7px); }
#clients article > div:first-child { border-color: rgb(255 255 255 / 13%); }
#clients article > div:first-child > div:first-child { border-color: rgb(247 181 0 / 22%); box-shadow: 0 8px 22px rgb(0 0 0 / 25%), 0 0 18px rgb(247 181 0 / 7%); transition: border-color .3s ease, box-shadow .35s ease, transform .45s cubic-bezier(.22,.61,.36,1); }
#clients article:is(:hover, :focus-within) > div:first-child > div:first-child { border-color: rgb(247 181 0 / 58%); box-shadow: 0 10px 24px rgb(0 0 0 / 32%), 0 0 24px rgb(247 181 0 / 18%); transform: translateY(-3px) scale(1.035); }
#clients article img { transition: transform .55s cubic-bezier(.22,.61,.36,1), filter .4s ease; }
#clients article:is(:hover, :focus-within) img { transform: scale(1.08); filter: drop-shadow(0 0 7px rgb(247 181 0 / 35%)); }
#clients article h3 { transition: color .3s ease, transform .35s ease; }
#clients article:is(:hover, :focus-within) h3 { color: #ffd34d !important; transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { #clients .departments-motion-item, #clients .departments-motion-item.is-visible { opacity: 1; transform: none; transition: none; } #clients article, #clients article:is(:hover, :focus-within), #clients article img, #clients article h3, #clients article > div:first-child > div:first-child { transition: none; transform: none; } }

#faq .faq-heading-motion, #faq .faq-motion-item { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .6s ease, transform .65s cubic-bezier(.22,.61,.36,1); transition-delay: calc(var(--faq-reveal-order, 0) * 65ms); }
#faq .faq-heading-motion.is-visible, #faq .faq-motion-item.is-visible { opacity: 1; transform: none; }
#faq .faq-motion-item { border-color: rgb(255 255 255 / 13%); transition: opacity .6s ease, transform .65s cubic-bezier(.22,.61,.36,1), border-color .25s ease, background-color .25s ease; }
#faq .faq-motion-item:hover, #faq .faq-motion-item:focus-within { border-color: rgb(247 181 0 / 40%); }
#faq .faq-motion-item > summary { border-radius: .65rem; transition: color .25s ease, padding .3s ease; }
#faq .faq-motion-item > summary:hover, #faq .faq-motion-item > summary:focus-visible { color: #ffd34d; outline: none; }
#faq .faq-motion-item > summary:focus-visible { box-shadow: 0 0 0 2px rgb(247 181 0 / 50%); }
#faq .faq-motion-item > summary span { transition: transform .35s cubic-bezier(.22,.61,.36,1), color .25s ease; }
#faq .faq-motion-item[open] > summary span { color: #ffd34d; transform: rotate(45deg); }
#faq .faq-motion-item > p { animation: faq-answer-enter .35s ease both; }
@keyframes faq-answer-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { #faq .faq-heading-motion, #faq .faq-motion-item, #faq .faq-heading-motion.is-visible, #faq .faq-motion-item.is-visible, #faq .faq-motion-item > summary, #faq .faq-motion-item > summary span, #faq .faq-motion-item > p { opacity: 1; transform: none; transition: none; animation: none; } }

#contact .contact-motion-item { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .7s ease, transform .75s cubic-bezier(.22,.61,.36,1); transition-delay: calc(var(--contact-reveal-order, 0) * 90ms); }
#contact .contact-motion-item.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { #contact .contact-motion-item, #contact .contact-motion-item.is-visible { opacity: 1; transform: none; transition: none; } }

/* Ensure visual coverage where the prior design used empty illustration panels. */
#expertise .service-card:nth-child(5), #projects article:nth-child(5) > div:first-child { background-image: linear-gradient(rgb(8 27 60 / 62%), rgb(8 27 60 / 78%)), url('assets/img/optimized/road.jpg'); background-size: cover; background-position: center; }
#expertise .service-card:nth-child(6), #projects article:nth-child(6) > div:first-child { background-image: linear-gradient(rgb(8 27 60 / 62%), rgb(8 27 60 / 78%)), url('assets/img/optimized/power.jpg'); background-size: cover; background-position: center; }
#expertise .service-card:nth-child(7), #projects article:nth-child(7) > div:first-child { background-image: linear-gradient(rgb(8 27 60 / 62%), rgb(8 27 60 / 78%)), url('assets/img/optimized/village.jpg'); background-size: cover; background-position: center; }
#expertise .service-card:nth-child(8), #projects article:nth-child(8) > div:first-child { background-image: linear-gradient(rgb(8 27 60 / 62%), rgb(8 27 60 / 78%)), url('assets/img/optimized/canal.jpg'); background-size: cover; background-position: center; }
#expertise .service-card:nth-child(n+5) h3, #expertise .service-card:nth-child(n+5) p, #expertise .service-card:nth-child(n+5) li { color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / 72%); }
#expertise .service-card:nth-child(n+5) ul { border-color: rgb(255 255 255 / 35%); }
#projects article:nth-child(n+5) > div:first-child > svg { position: relative; z-index: 1; }

.site-footer { position: relative; overflow: hidden; color: #e8eceb; background: #09130f; }
.site-footer::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60rem 28rem at 100% 0%, rgb(247 181 0 / 16%), transparent 58%), radial-gradient(42rem 28rem at 0% 90%, rgb(13 65 120 / 28%), transparent 62%); }
.footer-inner, .footer-bottom { position: relative; margin: auto; width: min(100%, 1550px); padding-inline: var(--page-gutter); }
.footer-callout { padding: clamp(3.75rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 4.5rem); border-bottom: 1px solid rgb(255 255 255 / 16%); }
.footer-kicker, .footer-nav > p, .footer-address > p { margin: 0 0 1.2rem; color: var(--psc-gold-light); font-size: .68rem; font-weight: 800; letter-spacing: .18em; }
.footer-callout > div { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.footer-callout h2 { max-width: 850px; margin: 0; font-size: clamp(2.3rem, 5.4vw, 5.2rem); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; }
.footer-callout em { color: var(--psc-gold-light); font-style: normal; font-weight: 500; }
.footer-callout a { flex: 0 0 auto; display: inline-flex; gap: .75rem; align-items: center; border-radius: 999px; padding: 1rem 1.35rem; background: var(--psc-gold); color: var(--psc-deep); font-size: .78rem; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.footer-callout a:hover { transform: translateY(-3px); background: var(--psc-gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.45fr .85fr .95fr 1.15fr; gap: clamp(2rem, 4vw, 5rem); padding-block: clamp(3rem, 6vw, 5.5rem); }
.footer-logo-link { display: inline-flex; max-width: 210px; border-radius: 10px; background: #fff; padding: .6rem .9rem; }
.footer-logo-link img { display: block; max-width: 100%; height: auto; }
.footer-brand p { max-width: 330px; margin: 1.4rem 0 1.2rem; color: rgb(232 236 235 / 72%); font-size: .94rem; line-height: 1.7; }
.footer-location { color: var(--psc-gold-light); font-size: .66rem; font-weight: 800; letter-spacing: .14em; }
.footer-nav, .footer-address { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.footer-nav a, .footer-address a { color: rgb(232 236 235 / 78%); font-size: .9rem; line-height: 1.5; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.footer-nav a:hover, .footer-address a:hover { color: #fff; transform: translateX(4px); }
.footer-address address { margin: -.15rem 0 .55rem; color: rgb(232 236 235 / 78%); font-size: .9rem; font-style: normal; line-height: 1.7; }
.footer-address a { color: var(--psc-gold-light); font-weight: 700; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem 2rem; align-items: center; min-height: 72px; border-top: 1px solid rgb(255 255 255 / 12%); color: rgb(232 236 235 / 58%); font-size: .72rem; letter-spacing: .025em; }
.footer-bottom a { color: var(--psc-gold-light); font-weight: 700; text-decoration: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr; } .footer-address { grid-column: 1 / -1; } .footer-bottom { grid-template-columns: 1fr; align-items: start; padding-block: 1.4rem 5.4rem; } }
@media (max-width: 600px) { .footer-callout > div { align-items: start; flex-direction: column; } .footer-callout h2 { font-size: clamp(2.15rem, 11vw, 3.2rem); } .footer-callout a { width: 100%; justify-content: center; } .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; } .footer-address { grid-column: auto; } }
@media (max-width: 900px) { .footer-bottom { padding-bottom: 2.5rem; } }

#mobileMenuOpen { border-color: rgb(247 181 0 / 72%); background: #101010; color: #ffd34d; box-shadow: 0 0 0 1px rgb(247 181 0 / 10%), 0 6px 20px rgb(0 0 0 / 28%); transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
#mobileMenuOpen:hover, #mobileMenuOpen:focus-visible { border-color: #ffd34d; background: #f7b500; color: #081b3c; box-shadow: 0 0 0 4px rgb(247 181 0 / 18%), 0 8px 24px rgb(0 0 0 / 35%); transform: translateY(-1px); }
#mobileMenuOpen:focus-visible { outline: 2px solid #ffd34d; outline-offset: 3px; }

#mobileDrawer { border-color: rgb(247 181 0 / 28%); background: radial-gradient(ellipse at 100% 0%, rgb(247 181 0 / 7%), transparent 34%), linear-gradient(160deg, #0b1c34, #081b3c 58%, #07162d); }
#mobileDrawer .mobile-drawer-header { border-color: rgb(247 181 0 / 22%); background: rgb(5 15 31 / 32%); }
#mobileDrawer .mobile-drawer-header .psc-logo-link { border: 1px solid rgb(247 181 0 / 28%); box-shadow: 0 6px 20px rgb(0 0 0 / 22%); }
#mobileMenuClose { border-color: rgb(247 181 0 / 48%); background: rgb(247 181 0 / 8%); color: #ffd34d; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
#mobileMenuClose:hover, #mobileMenuClose:focus-visible { border-color: #ffd34d; background: #f7b500; color: #081b3c; transform: rotate(90deg); }
#mobileMenuClose:focus-visible { outline: 2px solid #ffd34d; outline-offset: 3px; }
#mobileDrawer nav a { min-height: 44px; border-color: rgb(255 255 255 / 9%); border-radius: 8px; padding-inline: 8px; transition: color .25s ease, background-color .25s ease, border-color .25s ease, padding .25s ease; }
#mobileDrawer nav a:hover, #mobileDrawer nav a:focus-visible { background: rgb(247 181 0 / 7%); border-color: rgb(247 181 0 / 30%); padding-inline: 16px; }
#mobileDrawer nav a > span:last-child { border-color: rgb(247 181 0 / 25%); background: rgb(247 181 0 / 5%); color: #ffd34d; }
#mobileDrawer .mobile-drawer-contact { padding: 12px 10px 10px; border: 1px solid rgb(247 181 0 / 18%); border-radius: 12px; background: linear-gradient(145deg, rgb(16 42 73 / 56%), rgb(7 22 45 / 72%)); }
#mobileDrawer .mobile-drawer-contact-link { min-height: 42px; border: 1px solid transparent; }
#mobileDrawer .mobile-drawer-contact-link:hover, #mobileDrawer .mobile-drawer-contact-link:focus-visible { border-color: rgb(247 181 0 / 20%); background: rgb(247 181 0 / 7%); outline: none; }
#mobileDrawer .mobile-drawer-contact-link:focus-visible { box-shadow: 0 0 0 2px rgb(247 181 0 / 34%); }
#mobileDrawer .mobile-drawer-content > div:last-child { border-color: rgb(247 181 0 / 18%); }
#mobileDrawer .mobile-drawer-content > div:last-child a { border-color: rgb(247 181 0 / 26%); background: rgb(247 181 0 / 5%); }
#mobileDrawer .mobile-drawer-content > div:last-child a:hover, #mobileDrawer .mobile-drawer-content > div:last-child a:focus-visible { border-color: #ffd34d; background: #f7b500; color: #081b3c; }
#mobileDrawer[aria-hidden="false"] nav a, #mobileDrawer[aria-hidden="false"] .mobile-drawer-contact-link { animation: mobile-drawer-enter .38s cubic-bezier(.22,.61,.36,1) both; }
#mobileDrawer[aria-hidden="false"] nav a:nth-child(2) { animation-delay: 45ms; }
#mobileDrawer[aria-hidden="false"] nav a:nth-child(3) { animation-delay: 90ms; }
#mobileDrawer[aria-hidden="false"] nav a:nth-child(4) { animation-delay: 135ms; }
#mobileDrawer[aria-hidden="false"] .mobile-drawer-contact-link:nth-child(2) { animation-delay: 45ms; }
#mobileDrawer[aria-hidden="false"] .mobile-drawer-contact-link:nth-child(3) { animation-delay: 90ms; }
@keyframes mobile-drawer-enter { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { #mobileMenuClose, #mobileDrawer nav a, #mobileDrawer[aria-hidden="false"] nav a, #mobileDrawer[aria-hidden="false"] .mobile-drawer-contact-link { transition: none; animation: none; transform: none; } }

.footer-logo-link { opacity: 0; transform: translate3d(0, 12px, 0); border: 1px solid rgb(247 181 0 / 24%); box-shadow: 0 8px 26px rgb(0 0 0 / 24%), 0 0 18px rgb(247 181 0 / 10%); transition: opacity .65s ease, transform .65s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .35s ease; }
.footer-logo-link.is-visible { opacity: 1; transform: none; animation: footer-logo-glow 3.8s ease-in-out 650ms infinite alternate; }
.footer-logo-link:hover, .footer-logo-link:focus-visible { border-color: rgb(255 211 77 / 70%); box-shadow: 0 12px 32px rgb(0 0 0 / 32%), 0 0 28px rgb(247 181 0 / 24%); transform: translateY(-3px); }
@keyframes footer-logo-glow { from { box-shadow: 0 8px 26px rgb(0 0 0 / 24%), 0 0 14px rgb(247 181 0 / 9%); } to { box-shadow: 0 10px 30px rgb(0 0 0 / 28%), 0 0 26px rgb(247 181 0 / 22%); } }
@media (prefers-reduced-motion: reduce) { .footer-logo-link, .footer-logo-link.is-visible, .footer-logo-link:hover, #mobileMenuOpen, #mobileMenuOpen:hover { opacity: 1; transform: none; transition: none; animation: none; } }
