

:root {
  --gold: #FBBF3B;
  --gold-2: #F9BD3B;
  --ink: #464646;
  --light: #D2D2D2;
  --muted: #828282;
  --dark: #191919;
  --charcoal: #333333;
  --content: 1048px;
  --raleway: 'Raleway', sans-serif;
  --open-sans: 'Open Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--open-sans);
  font-size: 18px;
  color: var(--ink);
  background: #FFFFFF;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }

.content {
  width: min(var(--content), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

/* ============ Header ============ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 80px;
  background: #000000;
  z-index: 1000;
}

.header-inner {
  height: 100%;
  position: relative;
}

.logo {
  position: absolute;
  left: 72px;
  top: 12px;
}

.main-nav {
  position: absolute;
  right: 76px;
  top: 0;
  height: 100%;
}

.main-nav ul { display: flex; height: 100%; }

.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 91px;
  height: 80px;
  font-family: var(--raleway);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--light);
  transition: color .5s ease;
}

.main-nav a:hover { color: #FFFFFF; }
.main-nav a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 28px;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 3px; background: #FFFFFF; }

.side-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: rgba(30, 30, 30, .97);
  z-index: 1100;
  padding: 60px 0 0;
  transition: right .4s ease;
}
.side-nav.is-open { right: 0; }
.side-nav-close { position: absolute; top: 18px; right: 18px; }
.side-nav nav a {
  display: block;
  padding: 14px 28px;
  font-family: var(--raleway);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--light);
  background: rgba(255, 255, 255, .05);
  margin-bottom: 2px;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  height: 1000px;
  background: #000000;
  overflow: hidden;
}

.hero-slides, .hero-slide { position: absolute; inset: 0; }

.hero-slide {
  background: #4F4F4F;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
}

.explore-btn {
  position: absolute;
  left: calc(50% - 90px);
  top: 340px;
  width: 180px;
  height: 180px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--raleway);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #FFFFFF;
  transition: background-color .8s ease, transform .8s ease;
}
.explore-btn:hover {
  background: rgba(255, 255, 255, .4);
  transform: scale(1.06);
}

/* ============ Section scaffolding ============ */

.section { position: relative; }
.section-light { background: #FFFFFF; color: var(--ink); }
.section-medium { background: ##E5E5E5; color: var(--ink); }
.section-dark { background: var(--dark); color: var(--light); }
.section-gradient {
  background: linear-gradient(to right, #162C4F, #261C2B);
  color: var(--light);
}

.section-head { text-align: center; }

.section-head .kicker {
  font-family: var(--raleway);
  font-size: 18px;
  font-weight: 300;
  line-height: 18px;
}

.section-head .title {
  font-family: var(--raleway);
  font-size: 50px;
  font-weight: 300;
  line-height: 50px;
  margin-top: 12px;
}

.section-head .rule {
  display: block;
  width: 100px;
  height: 1px;
  margin: 17px auto 0;
  background: #B0B0B0;
}
.section-dark .rule,
.section-gradient .rule { background: #7F7F7F; }

.section-light .section-head { color: var(--ink); }
.section-dark .section-head,
.section-gradient .section-head { color: var(--light); }

/* ============ About ============ */

.about .section-head { padding-top: 100px; padding-bottom: 100px }

.pillars {
  display: flex;
  justify-content: space-between;
  margin-top: 118px;
  gap: 40px;
}

.pillar { width: 306px; }

.pillar-head { display: flex; align-items: flex-start; }

.pillar-icon {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .4s ease;
}
.pillar:hover .pillar-icon { background: var(--gold); }

.pillar-bar {
  width: 2px;
  height: 50px;
  background: var(--gold);
  margin: 15px 0 0 21px;
}

.pillar-head h3 {
  font-family: var(--raleway);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: var(--ink);
  margin: 18px 0 0 25px;
  max-width: 150px;
}

.pillar > p {
  margin-top: 18px;
  font-size: 18px;
  line-height: 26px;
  color: var(--muted);
}

/* --- Tabs (shared: about + portfolio) --- */

.about-tabs {
    margin-top: 100px;
    position: relative;
    z-index: 1;
}

.about-tabs::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
	height: 100;
    transform: translateX(-50%);
    background-color: #E5E5E5;
    z-index: -1;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 23px;
  padding-top: 20px;
}

.about-tabs .tab-btn {
  width: 150px;
  height: 30px;
  background: var(--charcoal);
  font-family: var(--raleway);
  font-size: 18px;
  font-weight: 500;
  color: var(--light);
  transition: background-color .5s ease;
  
}
.about-tabs .tab-btn:hover,
.about-tabs .tab-btn.is-active { background: var(--gold); }

.tab-panels { position: relative; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panelFade .5s ease; }

@keyframes panelFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.about-tabs .tab-panels { margin-top: 56px; min-height: 397px; }

.history-grid {
  display: flex;
  gap: 26px;
  align-items: flex-start;
}
.history-grid .tab-img {
  flex: 0 0 409px;
  height: 239px;
  margin-top: 10px;
  background-size: cover;
  background-position: center;
 
}
.history-grid .tab-text { flex: 1; }
.history-grid p,
.tab-caption,
.values-list li {
  font-size: 18px;
  line-height: 29px;
  color: var(--ink);
  text-align: left;
  padding-bottom: 20px;
  margin-bottom: 15px;
}

.tab-img-wide {
  width: 843px;
  max-width: 100%;
  height: 300px;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
}
.tab-caption {
  width: 843px;
  max-width: 100%;
  margin: 37px auto 0;
  text-align: center;
}

.values-list { padding-left: 34px; }
.values-list li { margin-bottom: 29px; position: relative; }
.values-list li::before {
  content: '\2022';
  position: absolute;
  right: 100%;
  margin-right: 6px;
}

/* --- CTA bands --- */

.cta-band {
  position: relative;
  height: 400px;
  margin-top: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  text-align: center;
}
/* Parallax: pin the cityscape to the viewport so the band acts as a moving
   window onto a stationary image. Scrolling reveals a different slice of the
   skyline instead of dragging the whole picture along with the page. */
.cta-band[data-parallax] {
  background-attachment: fixed;
}
@media (prefers-reduced-motion: reduce) {
  .cta-band[data-parallax] { background-attachment: scroll; }
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.cta-text {
  position: relative;
  padding-top: 144px;
  font-family: var(--raleway);
  font-size: 35px;
  font-weight: 100;
  line-height: 35px;
  color: var(--light);
}
.cta-text strong { font-weight: 400; }
.cta-text-lg { font-size: 40px; line-height: 40px; padding-top: 150px; }

.ghost-btn {
  position: absolute;
  left: calc(50% - 80px);
  top: 220px;
  width: 160px;
  padding: 13px 0 12px;
  border: 1px solid #FFFFFF;
  font-family: var(--raleway);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 13px;
  color: var(--light);
  transition: background-color .3s ease;
}
.ghost-btn:hover { background: rgba(255, 255, 255, .15); }

/* ============ Featured ============ */

.featured .section-head { padding-top: 100px; padding-bottom: 75px}

.featured-grid {
  display: flex;
  justify-content: space-between;
  margin-top: 79px;
}

.featured-card { width: 250px; text-align: center; }

.featured-img {
  position: relative;
  display: block;
  width: 250px;
  height: 181px;
  background-size: cover;
  background-position: center;
  transition: opacity .3s ease;
}
.featured-card:hover .featured-img { opacity: .8; }

.featured-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: #f00;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  transform: translate(-50%, -50%);
  transition: background-color .2s ease, transform .2s ease;
}
.featured-play::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid #fff;
  content: '';
  transform: translate(-50%, -50%);
}
.featured-card:hover .featured-play {
  background: #c00;
  transform: translate(-50%, -50%) scale(1.06);
}

.featured-title {
  display: block;
  margin-top: 29px;
  font-family: var(--raleway);
  font-size: 13px;
  font-weight: 600;
  line-height: 13px;
  color: var(--ink);
}

.featured-type {
  display: block;
  margin-top: 6px;
  font-family: var(--raleway);
  font-size: 18px;
  font-weight: 500;
  line-height: 12px;
  color: var(--muted);
}

/* --- Counter band --- */

.counter-band {
  position: relative;
  height: 600px;
  margin-top: 330px;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.counter-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.counter {
  position: relative;
  padding-top: 220px;
  font-family: var(--open-sans);
  font-size: 80px;
  line-height: 80px;
  color: var(--light);
}

.counter-caption {
  position: relative;
  margin-top: 31px;
  font-family: var(--raleway);
  font-size: 30px;
  font-weight: 100;
  line-height: 30px;
  color: var(--light);
}

/* ============ Services ============ */

.services { padding-bottom: 201px; }
.services .section-head { padding-top: 100px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 130px 60px;
  margin-top: 104px;
}

.service { display: flex; align-items: flex-start; }

.service-icon {
  flex: 0 0 61px;
  width: 61px;
  height: 61px;
  border: 1px solid var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon img { opacity: .8; }

.service-text { margin-left: 22px; }

.service-text h3 {
  font-family: var(--raleway);
  font-size: 16px;
  font-weight: 600;
  line-height: 13px;
  color: var(--light);
  margin-top: 1px;
}

.service-text p {
  margin-top: 15px;
  font-size: 18px;
  line-height: 29px;
  color: var(--light);
}

/* ============ Delivering quality ============ */

.quality { padding: 139px 0 140px; }

.quality-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.quality-left { width: 677px; }

.quality-img {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
}

.quality-left h3 {
  margin-top: 31px;
  font-family: var(--raleway);
  font-size: 16px;
  font-weight: 600;
  line-height: 13px;
  color: var(--ink);
}

.quality-left p {
  margin-top: 9px;
  font-size: 18px;
  line-height: 26px;
  color: var(--ink);
}

.skills {
  width: 307px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 120px;
}

.skill { position: relative; width: 38px; }

.skill .track {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 38px;
  height: 300px;
  background: #E5E5E5;
}

.skill .fill { display: block; width: 100%; background: var(--gold); }
.skill .fill-light { opacity: .75; }

.skill-label {
  position: absolute;
  top: 310px;
  right: 8px;
  width: 140px;
  font-family: var(--raleway);
  font-size: 12px;
  font-weight: 600;
  line-height: 12px;
  color: var(--ink);
  text-align: right;
  transform: rotate(-45deg);
  transform-origin: top right;
}

/* ============ Portfolio ============ */

.portfolio { padding-bottom: 336px; }
.portfolio .section-head { padding-top: 116px; }

.gallery-buttons { margin-top: 100px; gap: 25px; }

.gallery-btn {
  width: 110px;
  height: 30px;
  border: 1px solid #7F7F7F;
  font-family: var(--raleway);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #7F7F7F;
  transition: all .5s ease;
}
.gallery-btn:hover { color: var(--light); border-color: var(--light); }
.gallery-btn.is-active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--dark);
}

.portfolio .tab-panels { margin-top: 68px; }

.folio-grid {
  display: grid;
  grid-template-columns: repeat(3, 342px);
  gap: 10px 11px;
  justify-content: center;
}

.tile { overflow: hidden; }
.tile img {
  width: 342px;
  height: 342px;
  object-fit: cover;
  transition: transform .5s ease, opacity .5s ease;
}
.tile:hover img { opacity: .85; }

/* ============ Team ============ */

.team .section-head { padding-top: 100px; }

.team-grid {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}

.member {
  position: relative;
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  outline: 1px solid var(--charcoal);
  outline-offset: 6px;
  transition: transform .3s ease;
  margin-top: 40px;
}
.member-photo-1 { background-image: url('../images/team-img01-clr.jpg'); }
.member-photo-1:hover { background-image: url('../images/team-img01-gray.jpg'); }
.member-photo-2 { background-image: url('../images/team-img02-clr.jpg'); }
.member-photo-2:hover { background-image: url('../images/team-img02-gray.jpg'); }
.member-photo-3 { background-image: url('../images/team-img03-clr.jpg'); }
.member-photo-3:hover { background-image: url('../images/team-img03-gray.jpg'); }

.member-name {
  width: 248px;
  margin-top: 35px;
  border: 1px solid var(--charcoal);
  background: #FFFFFF;
  text-align: center;
  padding: 13px 0 12px;
}
.member-name h3 {
  font-family: var(--raleway);
  font-size: 18px;
  font-weight: 500;
  line-height: 18px;
  color: var(--ink);
}
.member-name p {
  margin-top: 5px;
  font-family: var(--raleway);
  font-size: 18px;
  font-weight: 500;
  line-height: 13px;
  color: var(--ink);
}

.bio-toggle {
  width: 248px;
  margin-top: -1px;
  border: 1px solid var(--charcoal);
  background: #FFFFFF;
  padding: 13px 0 12px;
  font-family: var(--raleway);
  font-size: 18px;
  font-weight: 600;
  line-height: 13px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bio-toggle img { transition: transform .3s ease; }
.bio-toggle[aria-expanded="false"] img { transform: rotate(180deg); }

/* Biography overlay */
.bio-panel {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 265px;
  min-height: 100%;
  background: rgba(51, 51, 51, 0.97);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .5s ease, visibility .5s ease;
  z-index: 20;
}
/* Show biography when hovering the Biography button or panel */
.member:has(.bio-toggle:hover) .bio-panel,
.member:has(.bio-panel:hover) .bio-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.bio-panel.is-open {
  opacity: 1;
  visibility: visible;
}
.member { padding-bottom: 0; }
.bio-panel h4 {
  margin: 20px 18px 0;
  font-family: var(--raleway);
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
}
.bio-panel p {
  margin: 12px 18px 20px;
  font-size: 12px;
  line-height: 24px;
  color: var(--light);
  text-align: left;
}

.member-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.member-social img { opacity: .5; transition: opacity .3s ease; cursor: pointer; }
.member-social img:hover { opacity: 1; }

.cta-band-buy { margin-top: 60px; }

/* ============ Office gallery ============ */

.office { padding: 210px 0 234px; }
.office .section-head { padding-bottom: 76px; }

.office-slider {
  position: relative;
  height: 655px;
  overflow: hidden;
}

.office-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
}
.office-slide.is-active { opacity: 1; }
.office-slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-arrow {
  position: absolute;
  top: 302px;
  width: 50px;
  height: 51px;
  background: rgba(255, 255, 255, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s ease;
  z-index: 2;
}
.slider-arrow:hover { background: rgba(255, 255, 255, .8); }
.slider-prev { left: 0; }
.slider-next { right: 0; }

.office-caption {
  margin-top: 55px;
  width: min(996px, calc(100% - 40px));
  font-size: 13px;
  line-height: 29px;
  color: var(--light);
  text-align: center;
}

/* ============ Clients ============ */

.clients { padding-bottom: 220px; }
.clients .section-head { padding-top: 100px; }

.clients-intro {
  margin-top: 69px;
  width: min(740px, calc(100% - 40px));
  font-size: 18px;
  line-height: 29px;
  color: var(--light);
  text-align:justify;
}

.clients-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 92px;
}

/* --- Testimonials --- */

.testimonials {
  width: min(537px, 100%);
  max-width: 100%;
  min-width: 0;
}

.testimonials-img {
  width: 100%;
  height: 244px;
  background-size: cover;
  background-position: center;
}

.quote-slides {
  width: 100%;
  min-width: 0;
  margin-top: 23px;
  min-height: 136px;
  overflow: hidden;
}

.quote-track {
  display: flex;
  width: 100%;
  gap: 0;
  transition: transform .35s ease;
  will-change: transform;
}

.quote-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: center;
}

.quote-slide blockquote {
  width: 100%;
  max-width: 100%;
  font-family: var(--raleway);
  font-size: 15px;
  font-weight: 300;
  line-height: 30px;
  color: var(--light);
  white-space: normal;
  overflow-wrap: break-word;
}

.quote-slide figcaption {
  margin-top: 8px;
  font-family: var(--raleway);
  font-size: 18px;
  font-weight: 500;
  line-height: 19px;
  color: #939393;
}
.quote-slide figcaption span { display: block; }

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin-top: 5px;
}

.dot {
  width: 9px;
  height: 9px;
  border: 1px solid #FFFFFF;
  border-radius: 50%;
  background: transparent;
  transition: background-color .3s ease;
}
.dot.is-active { background: #FFFFFF; }

/* --- Client logos --- */

.logo-box {
  position: relative;
  width: 471px;
  height: 398px;
  border: 1px solid rgba(255, 255, 255, .3);
}

.logo-slides {
  position: absolute;
  left: 50%;
  top: 39px;
  width: 336px;
  height: 320px;
  transform: translateX(-50%);
}

.logo-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 163px);
  gap: 6px 10px;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.logo-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.logo-cell {
  width: 163px;
  height: 157px;
  border: 1px solid #939393;
  opacity: .5;
  transition: opacity .5s ease;
}

.logo-cell:hover {
  opacity: 1;
}

.logo-cell img {
  width: 100%;
  height: 100%;
}

.logo-arrow {
  position: absolute;
  top: 183px;
  width: 30px;
  height: 30px;
  border: 1px solid #939393;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .6;
  transition: opacity .3s ease;
}

.logo-arrow:hover {
  opacity: 1;
}

.logo-prev {
  left: 14px;
}

.logo-next {
  right: 14px;
}

/* ============ Contact ============ */

.contact .section-head { padding-top: 100px;padding-bottom: 50px }

.contact-grid {
  display: flex;
  justify-content: space-between;
  margin-top: 84px;
}

.contact-info { width: 410px; padding: 10px 0 0 40px; }

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 32px;
}
.info-row img { flex: 0 0 30px; }
.info-row p {
  font-size: 16px;
  line-height: 20px;
  color: var(--ink);
  text-align: justify;
  padding-top: 5px;
}

.contact-form { width: 587px; margin-right: 25px; }

.contact-form label {
  display: block;
  font-family: var(--raleway);
  font-size: 18px;
  font-weight: 600;
  line-height: 13px;
  text-transform: uppercase;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin: 10px 0 20px;
  padding: 6px 16px;
  background: #F2F2F2;
  border: 1px solid transparent;
  font-family: var(--open-sans);
  font-size: 13px;
  line-height: 26px;
  color: var(--muted);
}
.contact-form input { height: 41px; }
.contact-form textarea { height: 310px; resize: none; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: #6B6B6B;
}

.submit-btn {
  width: 100%;
  height: 39px;
  background: var(--gold);
  border: 1px solid var(--gold);
  font-family: var(--raleway);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFFFFF;
  transition: opacity .3s ease;
}
.submit-btn:hover { opacity: .85; }

.map {
  height: 500px;
  margin-top: 165px;
  background: #E5E3DF;
}



/* ============ Contact Form Enhancements ============ */

.contact-form-wrap {
  width: 587px;
  max-width: 100%;
}

.contact-form {
  width: 100%;
  margin-right: 0;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-field {
  flex: 1 1 0;
  min-width: 0;
}

.contact-form label {
  margin-bottom: 10px;
}

.contact-form label span {
  color: var(--gold);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  margin: 0 0 20px;
  width: 100%;
  min-height: 41px;
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: 0;
  background: #F2F2F2;
  font-family: var(--raleway);
  font-size: 13px;
  line-height: 26px;
  color: var(--muted);
  appearance: none;
}

.contact-form select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #777 50%),
                    linear-gradient(135deg, #777 50%, transparent 50%);
  background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.contact-form textarea {
  height: 190px;
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: #6B6B6B;
}

.form-message {
  width: 100%;
}

.form-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0 0 20px;
  font-family: var(--open-sans) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  text-transform: none !important;
  color: var(--muted) !important;
}

.form-consent input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  cursor: pointer;
  accent-color: var(--gold);
}

.form-consent label {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--open-sans) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  text-transform: none !important;
  color: var(--muted) !important;
  cursor: pointer;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-required {
  margin-top: 9px;
  font-size: 11px;
  color: var(--muted);
}

.form-required span {
  color: var(--gold);
}

.contact-map {
  width: 100%;
  margin-top: 70px;
  overflow: hidden;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

@media (max-width: 1100px) {
  .contact-form-wrap {
    width: min(587px, 100%);
  }

  .contact-map {
    width: min(1048px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-form textarea {
    height: 180px;
  }

  .contact-map {
    width: 100%;
    margin: 45px 0 0;
  }

  .contact-map iframe {
    height: 350px;
  }
}

/* ============ Footer ============ */

.site-footer {
  background: var(--dark);
  text-align: center;
  padding: 25px 0 31px;
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: -15px auto 0;
  position: relative;
  z-index: 5;
  border-radius: 50%;
  background: #4C4C4C;
  transition: background-color .4s ease;
}
.back-to-top:hover { background: var(--gold-2); }

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 62px;
  margin-top: 75px;
}

.footer-social a {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
}

.footer-social img {
  display: block;
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
  object-position: center;
  opacity: .5;
  transition: opacity .4s ease;
  cursor: pointer;
}
.footer-social img:hover { opacity: 1; }

.copyright {
  margin-top: 107px;
  font-family: var(--raleway);
  font-size: 10px;
  line-height: 10px;
  color: var(--light);
}

/* ============ Lightbox ============ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  z-index: 2000;
  display: none;
  overflow-y: auto;
}
.lightbox.is-open { display: block; }

.lightbox-chrome {
  position: fixed;
  top: 22px;
  right: 22px;
  display: flex;
  gap: 1px;
  z-index: 2010;
}

.lb-btn {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s ease;
}
.lb-btn:hover { background: rgba(0, 0, 0, .6); }

.lightbox-body {
  width: min(1000px, 92vw);
  margin: 70px auto 40px;
}

.lb-media { position: relative; }

.lb-slide { display: none; }
.lb-slide.is-active { display: block; }
.lb-slide img { width: 100%; height: auto; }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s ease;
  z-index: 3;
}
.lb-arrow:hover { background: rgba(0, 0, 0, .6); }
.lb-arrow-prev { left: 0; }
.lb-arrow-next { right: 0; }

.lb-caption {
  margin-top: 19px;
  text-align: center;
  font-size: 18px;
  line-height: 20px;
  color: var(--light);
}

.lb-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.2%;
}
.lb-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lb-local-video {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  background: #111;
}
.lb-local-video > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .48;
}
.lb-local-video-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 560px;
  padding: 24px;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.lb-local-video-overlay p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}
.lb-youtube-link {
  display: inline-flex;
  padding: 12px 20px;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  background: #f00;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  text-shadow: none;
  transition: background-color .2s ease, transform .2s ease;
}
.lb-youtube-link::before {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  content: '';
}
.lb-youtube-link:hover { background: #c00; transform: translateY(-1px); }
.lb-youtube-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ============ Reveal animations ============ */

.reveal { opacity: 0; }
.reveal.in { animation-fill-mode: both; animation-duration: 1s; opacity: 1; }
.reveal.in[data-anim="fadeInUp"] { animation-name: fadeInUp; }
.reveal.in[data-anim="fadeInDown"] { animation-name: fadeInDown; }
.reveal.in[data-anim="fadeInLeft"] { animation-name: fadeInLeft; }
.reveal.in[data-anim="fadeInRight"] { animation-name: fadeInRight; }
.reveal.in[data-anim="zoomIn"] { animation-name: zoomIn; }
.reveal.in[data-anim="bounceInDown"] { animation-name: bounceInDown; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 40px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0, -40px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-60px, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(60px, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale3d(.3, .3, .3); }
  50% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes bounceInDown {
  0% { opacity: 0; transform: translate3d(0, -300px, 0); }
  60% { opacity: 1; transform: translate3d(0, 25px, 0); }
  75% { transform: translate3d(0, -10px, 0); }
  90% { transform: translate3d(0, 5px, 0); }
  100% { transform: none; }
}

/* hover.css equivalents */
.hvr-shrink { transition: transform .3s ease; }
.hvr-shrink:hover { transform: scale(.92); }

/* ============ Responsive ============ */

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .logo { left: 24px; }
  .logo img { width: 150px; height: auto; }

  .hero { height: 700px; }
  .explore-btn { top: 260px; }

  /* Touch browsers (iOS Safari especially) render fixed backgrounds at the wrong
     scale and stutter while scrolling, so let the image ride with the page. */
  .cta-band[data-parallax] { background-attachment: scroll; }

  .pillars, .quality-grid, .clients-grid, .contact-grid, .team-grid {
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }
  .pillar { width: min(480px, 100%); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .folio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile img { width: 100%; height: auto; aspect-ratio: 1; }
  .history-grid { flex-direction: column; }
  .history-grid .tab-img { flex: none; width: 100%; }
  .quality-left { width: 100%; }
  .featured-grid { flex-wrap: wrap; justify-content: center; gap: 40px; }
  .testimonials, .testimonials-img { width: min(537px, 100%); }
  .contact-form, .contact-info { width: min(587px, 100%); }
  .office-slider { height: auto; aspect-ratio: 1048 / 655; }
  .slider-arrow { top: calc(50% - 25px); }
  .logo-box { transform: scale(.9); }
}

@media (max-width: 640px) {
  .section-head .title { font-size: 34px; line-height: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .folio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab-buttons { flex-wrap: wrap; }
  .footer-social { gap: 18px; flex-wrap: wrap; }
  .skills { padding-bottom: 150px; }
  .hero { height: 560px; }
  .explore-btn { top: 200px; width: 150px; height: 150px; font-size: 18px; }
  .cta-text { font-size: 26px; padding-left: 16px; padding-right: 16px; }
  .counter { font-size: 56px; }
  .counter-caption { font-size: 22px; line-height: 30px; padding: 0 20px; }
}
/* Header stays at the top */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    /* Hide black background */
    background: transparent;

    transition: background 0.4s ease;
}

/* Bring back black bar after scrolling */
.site-header.scrolled {
    background: rgba(0, 0, 0, 0.90);
}
.logo img {
    max-height: 60px;
    width: auto;
    position: relative;
    top: 8px;
}

/* ============ Team Social Icons Fix ============ */

.team .member {
    position: relative;
}

.team .member-social {
    position: relative;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    min-height: 25px;
}

.team .member-social img {
    display: block;
    width: 25px;
    height: 25px;
    max-width: 25px;
    opacity: 0.5;
    visibility: visible;
}

.team .member-social img:hover {
    opacity: 1;
	
	
}

/* ============================================================
   CLIENT LOGOS - RESPONSIVE MOBILE/TABLET FIX v2
   Keep the original desktop design, but make the logo panel
   genuinely responsive instead of scaling a fixed-size box.
   ============================================================ */
@media (max-width: 1100px) {
  .clients-grid {
    width: min(var(--content), calc(100% - 40px));
    box-sizing: border-box;
  }

  .clients-grid .logo-box {
    width: min(471px, 100%);
    max-width: 100%;
    height: auto;
    aspect-ratio: 471 / 398;
    flex: 0 1 471px;
    box-sizing: border-box;
    transform: none;
  }

  .clients-grid .logo-slides {
  left: 50%;
  top: 9.80%;
  width: 71.34%;
  height: 80.40%;
  transform: translateX(-50%);
    box-sizing: border-box;
  }

  .clients-grid .logo-slide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }

  .clients-grid .logo-cell {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
  }

  .clients-grid .logo-cell img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .clients-grid .logo-arrow {
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 640px) {
  .clients-grid {
    width: calc(100% - 32px);
    max-width: none;
  }

  .clients-grid .logo-box {
    width: 100%;
    max-width: 100%;
  }

  .clients-grid .logo-arrow {
    width: 30px;
    height: 30px;
  }

  .clients-grid .logo-prev { left: 10px; }
  .clients-grid .logo-next { right: 10px; }
}



/* SEO content enhancements */
.seo-intro { max-width: 900px; margin: 0 auto 34px; text-align: justify; line-height: 1.8; }
.service-learn-more { display:inline-block; margin-top:10px; font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; text-decoration:underline; }
.service-links { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 24px; margin:42px auto 0; max-width:1000px; font-size:.18rem; }
.service-links a { text-decoration:underline; }

/* Responsive JWD logo size */
@media (max-width: 1100px) {
  .logo img {
    width: 120px;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .logo img {
    width: 110px;
  }
}

@media (max-width: 640px) {

    .featured .section-head {
        padding-bottom: 30px;
    }

    .featured-grid {
        margin-top: 30px;
    }

}

@media (max-width: 640px) {
    .counter-band {
        margin-top: 100px;
    }
}

@media (max-width: 640px) {
    .quality {
        padding-top: 80px;
    }
}

@media (max-width: 640px) {
    .contact-section {
        padding-top: 50px;
    }
}
@media (max-width: 640px) {
    .clients {
        padding-bottom: 80px;
    }
   /* Reduce white space above Contact heading */
    .contact .section-head {
        padding-top: 80px;
    }
}

@media (max-width: 640px) {

    .contact .section-head {
        padding-bottom: 20px;
    }

    .contact-grid {
        margin-top: 30px;
    }

}

@media (max-width: 768px) {
  .profile-block {
    width: 92%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

.contact-grid {
    justify-content: center;
    gap: 10px;
}

@media (max-width: 640px) {
  .explore-btn {
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.portfolio {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 100px !important;
}

.hero-slogan {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 90%;
  margin: 0;

  color: #fff;
  font-family: inherit;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  text-align: right;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

/* Even spacing between navigation labels */
.main-nav ul {
  gap: 28px;
}

.main-nav a {
  width: auto;
  white-space: nowrap;
}
/* Raise the biography popup */
.bio-panel {
  top: -10px;
  padding-top: 10px;
  min-height: calc(100% + 10px);

}


.form-status {
  margin-bottom: 20px;
  padding: 12px 15px;
  border-left: 3px solid var(--gold);
  background: #F2F2F2;
  font-size: 13px;
  line-height: 20px;
}
.form-status-error {
  border-left-color: #777;
}

/* Keep scroll-triggered effects inside the phone viewport. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 640px) {
  .reveal.in[data-anim="fadeInLeft"],
  .reveal.in[data-anim="fadeInRight"] {
    animation-name: fadeInUp;
  }

  .about-tabs {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    padding-inline: 20px;
    background: #E5E5E5;
    overflow-x: clip;
  }

  .about-tabs::before {
    display: none;
  }

}
