body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: var(--parallax-height, 100vh);
  background: url("../../Imagers/construction%20iamge.jpg") center / cover no-repeat;
  transform: translate3d(0, var(--parallax-offset, 0px), 0);
  will-change: transform;
}

.team-page-document body::before {
  background-image: none;
}

.home-page-document body::before {
  background-image: none;
}

.commission-page-document body::before {
  background-image: none;
}

.commission-page-document {
  overflow-x: hidden;
}

.home-page-document {
  overflow-x: hidden;
}

.navbar,
.site-footer {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background-color: #000;
  padding: 12px clamp(8px, 2vw, 24px);
}

.nav-group {
  display: flex;
  flex: 1;
  align-items: center;
  gap: clamp(4px, 0.75vw, 10px);
}

.nav-group-left {
  justify-content: flex-end;
}

.nav-group-right {
  justify-content: flex-start;
}

.social-dropdown {
  position: relative;
}

.social-toggle {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.social-toggle::-webkit-details-marker {
  display: none;
}

.social-toggle svg {
  width: 22px;
  height: 22px;
}

.dropdown-menu,
.social-menu {
  border: 1px solid #333;
  background-color: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.social-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 2;
  min-width: 150px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
}

.dropdown-menu .nav-button,
.social-link {
  display: block;
  padding: 8px 10px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.brand {
  flex: 0 1 700px;
  min-width: 0;
  text-align: center;
}

.brand img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
}

.nav-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  padding: 8px 10px;
  color: #fff;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 260ms ease;
}

.nav-button::before,
.social-link::before,
.social-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms ease;
}

.social-link,
.social-toggle {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 260ms ease;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-icon {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  transition: filter 260ms ease;
}

.social-toggle {
  border: 0;
  background: transparent;
}

.nav-button[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.nav-button:hover,
.nav-button:focus-visible,
.social-link:hover,
.social-link:focus-visible,
.social-toggle:hover,
.social-toggle:focus-visible {
  color: #6b21a8;
}

.nav-button:hover .social-icon,
.nav-button:focus-visible .social-icon,
.social-link:hover .social-icon,
.social-link:focus-visible .social-icon {
  filter: brightness(0) saturate(100%) invert(18%) sepia(82%) saturate(2915%) hue-rotate(263deg) brightness(88%) contrast(100%);
}

.nav-button:hover::before,
.nav-button:focus-visible::before,
.social-link:hover::before,
.social-link:focus-visible::before,
.social-toggle:hover::before,
.social-toggle:focus-visible::before {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  min-width: 100%;
  padding: 4px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.current-dropdown .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .dropdown-menu {
    transform: none;
    transition: none;
  }

  .nav-button,
  .social-link,
  .social-toggle,
  .social-icon,
  .nav-button::before,
  .social-link::before,
  .social-toggle::before {
    transition: none;
  }
}

@media (max-width: 800px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
  }

  .brand {
    order: -1;
    flex: 0 0 100%;
  }

  .brand img {
    margin: 0 auto;
    width: min(700px, 90vw);
  }

  .nav-group {
    flex: 0 1 auto;
  }
}

.site-footer {
  margin-top: auto;
  padding: 28px 16px 18px;
  border-top: 1px solid #333;
  background-color: #000;
  color: #fff;
  text-align: center;
}

.page-content {
  flex: 1;
  min-height: 140vh;
  box-sizing: border-box;
  width: min(calc(100% - 32px), 1000px);
  margin: 0 auto;
  padding: clamp(32px, 7vw, 72px) 0;
  color: #fff;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

.page-intro,
.page-section {
  margin-bottom: 24px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(0, 0, 0, 0.72);
}

.page-intro h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.page-intro p,
.page-section p {
  line-height: 1.6;
}

.page-section h2 {
  margin-top: 0;
}

.featured-gallery {
  display: flex;
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.featured-gallery::-webkit-scrollbar {
  display: none;
}

.featured-gallery:focus-visible {
  outline: 2px solid #222;
  outline-offset: 4px;
}

.featured-gallery.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.featured-gallery img {
  flex: 0 0 auto;
  height: clamp(240px, 32vw, 320px);
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}

h1,
h2 {
  font-family: "Josefin Sans", "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-member {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: min(100%, 680px);
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(0, 0, 0, 0.72);
}

.team-member-left {
  align-self: flex-start;
}

.team-member-right {
  align-self: flex-end;
}

.team-member h2 {
  margin: 0 0 4px;
}

.team-member-position {
  margin: 0 0 12px;
  color: #ccc;
  font-weight: 600;
}

.team-member p:last-child {
  margin: 12px 0 0;
  line-height: 1.6;
}

.team-member-diagonal {
  border-color: transparent;
  background: transparent;
}

.team-page {
  color: #000;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

.home-page {
  color: #000;
}

.team-page-document {
  overflow-x: hidden;
}

.home-page .page-intro {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.home-page .page-section {
  padding: clamp(24px, 5vw, 48px) 0 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.commission-page {
  color: #000;
}

.commission-page .page-intro {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.commission-page .page-section {
  padding: clamp(24px, 5vw, 40px) 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  background: transparent;
  text-align: center;
}

.commission-closed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 64px);
  max-width: 920px;
  margin: clamp(48px, 8vw, 96px) auto;
  color: #000;
}

.commission-closed-copy {
  flex: 1;
  min-width: 0;
}

.commission-closed h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.commission-closed p {
  margin: 0;
  line-height: 1.75;
}

.commission-closed p span {
  display: block;
}

.commission-closed p span + span {
  margin-top: 1.1em;
}

.commission-closed-image {
  display: block;
  flex: 0 0 clamp(160px, 22vw, 240px);
  width: clamp(160px, 22vw, 240px);
  height: clamp(300px, 38vw, 420px);
  object-fit: fill;
}

@media (max-width: 640px) {
  .commission-closed {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .commission-closed-image {
    flex-basis: auto;
    width: clamp(180px, 55vw, 260px);
    height: clamp(260px, 70vw, 340px);
  }
}

.team-page .page-intro {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.team-page-note {
  margin: clamp(32px, 6vw, 64px) 0 0;
  line-height: 1.6;
  text-align: center;
}

.team-page .team-member {
  padding: 20px 0;
  border: 0;
  background: transparent;
}

.team-page .team-member-left {
  padding-left: clamp(24px, 5vw, 64px);
}

.team-page .team-member-right:not(.team-member-diagonal) {
  padding-right: clamp(24px, 5vw, 64px);
}

.team-page .team-member-position {
  color: inherit;
}

.team-member-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 48px);
}

.team-member-copy {
  flex: 1;
  min-width: 0;
}

.team-member-photo {
  display: block;
  flex: 0 0 clamp(128px, 23vw, 200px);
  width: clamp(128px, 23vw, 200px);
  aspect-ratio: 1;
  object-fit: cover;
}

.team-page .team-member-diagonal {
  align-self: stretch;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  padding: clamp(72px, 8vw, 104px) max(16px, calc((100vw - 760px) / 2));
  color: #fff;
  background-color: #000;
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
  text-align: right;
}

.team-page .team-member-right.team-member-diagonal {
  z-index: 1;
  margin-top: -56px;
  margin-bottom: -68px;
}

.team-page .team-member-striped {
  color: #000;
  background-color: #fff;
  clip-path: polygon(0 0, 100% 2.44vw, 100% 100%, 0 calc(100% - 2.44vw));
  text-align: left;
}

.team-page .team-member-third {
  align-self: stretch;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  padding: clamp(72px, 8vw, 104px) max(16px, calc((100vw - 760px) / 2));
  color: #000;
  background-color: #fff;
  clip-path: polygon(0 0, 100% 2.44vw, 100% 100%, 0 calc(100% - 2.44vw));
}

.team-member-third .team-member-content {
  text-align: left;
}

.team-member-striped::before,
.team-member-striped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 0;
  height: 18px;
  transform: skewY(1.4deg);
  transform-origin: center;
  background: linear-gradient(to bottom, #000 0 50%, #6b21a8 50% 100%);
}

.team-member-striped::before {
  top: calc(12px + 1.22vw);
}

.team-member-striped::after {
  bottom: calc(12px + 1.22vw);
}

.team-member-third::before,
.team-member-third::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  transform: skewY(1.4deg);
  transform-origin: center;
}

.team-member-third::before {
  top: calc(48px + 1.22vw);
  background-color: #d00000;
}

.team-member-third::after {
  bottom: calc(12px + 1.22vw);
  background-color: #000;
}

@media (max-width: 560px) {
  .team-member-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-member-photo {
    flex-basis: auto;
    width: clamp(128px, 40vw, 180px);
  }

  .team-member-right .team-member-photo {
    align-self: flex-end;
  }
}

.footer-quote {
  margin: 0 0 18px;
  font-size: 1rem;
  font-style: italic;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-copyright {
  margin: 0;
  color: #aaa;
  font-size: 0.85rem;
}