html {
  scroll-behavior: smooth;
}

body.archidex-project {
  background: #f7f6f3;
  color: #151515;
  font-family: "Bai Jamjuree", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.archidex-project ::selection {
  background: #151515;
  color: #f7f6f3;
}

body.archidex-project .site-header,
body.archidex-project .site-footer,
body.archidex-project .elementor-location-header,
body.archidex-project .elementor-location-footer {
  display: none !important;
}

/* —— Header —— */
.adx-project-header.e-con {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 243, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

body.admin-bar .adx-project-header.e-con {
  top: 32px;
}

.adx-project-header .elementor-widget-image img,
.adx-project-header .adx-brand-logo img {
  width: auto !important;
  height: 40px !important;
  max-width: min(100%, 280px) !important;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.adx-project-header .adx-brand-logo a:hover img,
.adx-project-header .elementor-widget-image a:hover img {
  opacity: 0.7;
  transform: translateY(-1px);
}

.adx-project-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adx-project-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: #151515;
  text-decoration: none;
  transition: color 0.25s ease;
}

.adx-project-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: #151515;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.adx-project-nav a:hover {
  color: #777;
}

.adx-project-nav a:hover::after,
.adx-project-nav a.is-active::after {
  transform: scaleX(1);
}

.adx-project-nav a.is-active {
  color: #151515;
  font-weight: 500;
}

/* —— Title —— */
.adx-project-kicker .elementor-heading-title {
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
  color: #7a7a7a !important;
}

.adx-project-title .elementor-heading-title {
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: clamp(42px, 6.5vw, 72px) !important;
  font-weight: 500 !important;
  line-height: 0.96 !important;
  letter-spacing: -0.045em;
  color: #151515 !important;
}

.adx-project-meta,
.adx-project-meta p {
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.01em;
  color: #151515 !important;
  margin: 0;
}

.adx-project-meta-row.e-con {
  border-top: 1px solid rgba(21, 21, 21, 0.12);
  padding-top: 14px !important;
}

/* —— Full-bleed media —— */
.adx-project-hero.e-con,
.adx-project-feature.e-con,
.adx-project-video-wrap.e-con {
  padding: 0 !important;
  overflow: hidden;
}

.adx-project-hero .elementor-widget-image,
.adx-project-hero .elementor-widget-image .elementor-widget-container,
.adx-project-hero .elementor-widget-image img,
.adx-project-hero img,
.adx-project-feature .elementor-widget-image,
.adx-project-feature .elementor-widget-image img,
.adx-project-feature img {
  width: 100% !important;
  max-width: none !important;
  display: block;
}

.adx-project-hero img {
  height: clamp(56vh, 68vh, 820px);
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.adx-project-feature img {
  height: clamp(48vh, 60vh, 740px);
  min-height: 380px;
  object-fit: cover;
  object-position: center;
}

/* —— Video —— */
.adx-project-video {
  position: relative;
  width: 100%;
  background: #111;
  overflow: hidden;
}

.adx-project-video video {
  display: block;
  width: 100%;
  height: 72vh;
  min-height: 420px;
  max-height: 860px;
  object-fit: cover;
}

.adx-project-video__label {
  position: absolute;
  left: 80px;
  bottom: 28px;
  z-index: 2;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  pointer-events: none;
}

.adx-project-video__controls {
  position: absolute;
  right: 80px;
  bottom: 24px;
  z-index: 2;
}

.adx-project-video__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-family: "Bai Jamjuree", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.adx-project-video__btn:hover,
.adx-project-video__btn:focus-visible {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* —— Intro —— */
.adx-project-intro .elementor-heading-title {
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: clamp(22px, 2.4vw, 34px) !important;
  font-weight: 500 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.03em;
  color: #151515 !important;
  max-width: 58ch;
}

.adx-project-intro .elementor-heading-title span {
  color: #8a8a8a;
}

.adx-project-section-label .elementor-heading-title,
.adx-project-label .elementor-heading-title {
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: #6b6b6b !important;
}

/* —— Stats —— */
.adx-project-stats.e-con {
  border-top: 1px solid rgba(21, 21, 21, 0.1);
  border-bottom: 1px solid rgba(21, 21, 21, 0.1);
}

.adx-project-stats.e-con,
.adx-project-stats.e-con > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: clamp(16px, 2vw, 32px) !important;
}

.adx-project-stats > .adx-project-stat.e-con,
.adx-project-stats .adx-project-stat.e-con {
  width: auto !important;
  max-width: none !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding-right: 0 !important;
  --width: auto !important;
}

.adx-project-stat .elementor-heading-title {
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: clamp(28px, 3.2vw, 42px) !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em;
  color: #151515 !important;
  margin: 0 0 8px !important;
}

.adx-project-stat-label,
.adx-project-stat-label p {
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6b6b !important;
  margin: 0 !important;
}

/* —— Facts / copy —— */
.adx-project-facts .elementor-icon-list-items {
  padding: 0;
  margin: 0;
}

.adx-project-facts .elementor-icon-list-item {
  margin: 0 !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid rgba(21, 21, 21, 0.1);
}

.adx-project-facts .elementor-icon-list-item:first-child {
  border-top: 1px solid rgba(21, 21, 21, 0.1);
}

.adx-project-facts .elementor-icon-list-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 14px !important;
  margin-inline-end: 10px !important;
  color: #6ec1e4 !important;
}

.adx-project-facts .elementor-icon-list-icon svg,
.adx-project-facts .elementor-icon-list-icon i {
  width: 10px !important;
  height: 10px !important;
  fill: #6ec1e4 !important;
  color: #6ec1e4 !important;
}

.adx-project-facts .elementor-icon-list-text {
  font-family: "Bai Jamjuree", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #151515;
}

.adx-project-copy,
.adx-project-copy p,
.adx-project-copy li {
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: #2a2a2a !important;
}

.adx-project-copy p {
  margin: 0 0 18px;
}

.adx-project-copy h4,
.adx-project-copy .adx-project-label {
  margin: 0 0 14px;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6b6b !important;
}

.adx-project-copy ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.adx-project-copy li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}

.adx-project-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: #151515;
}

.adx-project-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  display: block;
}

/* —— Gallery —— */
.adx-project-gallery .e-gallery-item {
  border-radius: 0;
  overflow: hidden;
}

.adx-project-gallery .e-gallery-image {
  transition: transform 0.7s ease;
}

.adx-project-gallery .e-gallery-item:hover .e-gallery-image {
  transform: scale(1.03);
}

/* —— Footer —— */
.adx-project-footer,
.adx-project-footer p {
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 14px !important;
  color: #151515;
  margin: 0;
}

.adx-project-footer {
  border-top: 1px solid rgba(21, 21, 21, 0.1);
  background: linear-gradient(180deg, #f7f6f3 0%, #f2f0ea 100%);
}

.adx-project-title-block.e-con {
  padding-top: 18px !important;
  padding-bottom: 22px !important;
}

.adx-project-title-block .elementor-widget:first-child {
  margin-top: 0 !important;
}

@media (max-width: 767px) {
  .adx-project-title-block.e-con {
    padding-top: 14px !important;
    padding-bottom: 18px !important;
  }
}

.adx-project-footer a {
  color: #151515;
  text-decoration: none;
  border-bottom: 1px solid rgba(21, 21, 21, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.adx-project-footer a:hover {
  color: #777;
  border-color: rgba(119, 119, 119, 0.5);
}

/* —— About contact —— */
.adx-about-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.adx-about-contact li {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(21, 21, 21, 0.1);
}

.adx-about-contact li:first-child {
  border-top: 1px solid rgba(21, 21, 21, 0.1);
}

.adx-about-contact li::before {
  display: none;
}

.adx-about-contact span {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6b6b !important;
}

.adx-about-contact a {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #151515 !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(21, 21, 21, 0.28);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.adx-about-contact a:hover {
  color: #777 !important;
  border-color: rgba(119, 119, 119, 0.5);
}

.adx-about-closing {
  border-top: 1px solid rgba(21, 21, 21, 0.1);
  padding-top: clamp(28px, 4vh, 48px) !important;
}

.adx-about-closing .elementor-heading-title {
  max-width: 36ch;
}

/* —— Contact form —— */
.adx-contact-hero img {
  max-height: 52vh;
  object-position: center 40%;
}

.adx-contact-value {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #151515 !important;
  text-align: right;
  max-width: 28ch;
  line-height: 1.5 !important;
}

.adx-contact-form-wrap {
  padding: 40px 40px 44px;
  background: linear-gradient(165deg, #ffffff 0%, #faf9f6 100%);
  border: 1px solid rgba(21, 21, 21, 0.1);
  box-shadow: 0 18px 48px rgba(21, 21, 21, 0.04);
}

.adx-contact-form .elementor-field-group {
  margin-bottom: 14px !important;
}

.adx-contact-form .elementor-field-textual,
.adx-contact-form input[type="text"],
.adx-contact-form input[type="email"],
.adx-contact-form input[type="tel"],
.adx-contact-form textarea {
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #151515 !important;
  background: #f7f6f3 !important;
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  padding: 16px 18px !important;
  box-shadow: none !important;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.adx-contact-form .elementor-field-textual:focus,
.adx-contact-form input:focus,
.adx-contact-form textarea:focus {
  background: #fff !important;
  border-color: rgba(21, 21, 21, 0.35) !important;
  outline: none !important;
}

.adx-contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.adx-contact-form .elementor-field-group .elementor-field-label {
  display: none;
}

.adx-contact-form .elementor-button,
.adx-contact-form .elementor-button[type="submit"] {
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff !important;
  background: #151515 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 18px 28px !important;
  width: 100%;
  transition: background 0.25s ease, transform 0.25s ease;
}

.adx-contact-form .elementor-button:hover,
.adx-contact-form .elementor-button:focus-visible {
  background: #333 !important;
  transform: translateY(-1px);
}

.adx-contact-form .elementor-message {
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 14px !important;
  margin-top: 16px;
}

.adx-contact-form .elementor-message-success {
  color: #2a2a2a !important;
}

@media (max-width: 767px) {
  .adx-contact-form-wrap {
    padding: 24px 20px 28px;
  }

  .adx-contact-value {
    text-align: left;
    max-width: none;
  }
}

/* —— Motion —— */
.adx-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.adx-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.adx-project-nav a:focus-visible,
.adx-about-contact a:focus-visible,
.adx-services-cta:focus-visible,
.adx-project-footer a:focus-visible,
.adx-portfolio-item:focus-visible {
  outline: 1px solid #151515;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .adx-project-hero img,
  .adx-project-feature img,
  .adx-project-media img,
  .adx-project-video video {
    animation: adx-fade-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes adx-fade-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(1.01);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1199px) {
  .adx-project-video__label,
  .adx-project-video__controls {
    left: 40px;
    right: 40px;
  }

  .adx-project-video__controls {
    left: auto;
  }
}

@media (max-width: 767px) {
  body.admin-bar .adx-project-header.e-con {
    top: 46px;
  }

  .adx-project-nav {
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .adx-project-stats.e-con,
  .adx-project-stats.e-con > .e-con-inner {
    flex-wrap: wrap !important;
  }

  .adx-project-stats > .adx-project-stat.e-con,
  .adx-project-stats .adx-project-stat.e-con {
    width: calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    flex: 0 0 calc(50% - 8px) !important;
    margin-bottom: 18px;
  }

  .adx-project-hero img,
  .adx-project-feature img,
  .adx-project-video video,
  .adx-project-media img {
    min-height: 280px;
    height: 56vh;
  }

  .adx-project-video__label,
  .adx-project-video__controls {
    left: 20px;
    right: 20px;
    bottom: 18px;
  }

  .adx-project-video__controls {
    left: auto;
  }
}

/* —— Services —— */
.adx-services-hero img {
  max-height: 48vh;
  object-position: center 45%;
}

.adx-services-pillars.adx-project-stats.e-con,
.adx-services-pillars.adx-project-stats.e-con > .e-con-inner {
  flex-wrap: nowrap !important;
  gap: clamp(16px, 2.5vw, 40px) !important;
}

.adx-services-pillars.adx-project-stats > .adx-project-stat.e-con,
.adx-services-pillars.adx-project-stats .adx-project-stat.e-con {
  width: auto !important;
  max-width: none !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding-right: 0 !important;
  --width: auto !important;
}

.adx-services-side.adx-project-media img {
  min-height: 320px;
  height: 42vh;
  max-height: 460px;
  margin-bottom: 28px;
}

.adx-services-grid.e-con,
.adx-services-grid.e-con > .e-con-inner {
  align-items: flex-start !important;
}

.adx-services-side.e-con {
  position: sticky;
  top: 88px;
  align-self: flex-start !important;
}

body.admin-bar .adx-services-side.e-con {
  top: 120px;
}

.adx-services-aside {
  margin-top: 8px;
}

.adx-services-next {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(21, 21, 21, 0.1);
}

.adx-services-next__text {
  margin: 0 0 22px !important;
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.02em;
  color: #151515 !important;
  max-width: 28ch;
}

.adx-services-aside-label {
  margin: 0 0 14px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6b6b !important;
}

.adx-services-cta {
  display: inline-block;
  margin-top: 8px;
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff !important;
  background: #151515;
  text-decoration: none !important;
  border: none !important;
  padding: 16px 26px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.adx-services-cta:hover,
.adx-services-cta:focus-visible {
  background: #333;
  color: #fff !important;
  transform: translateY(-1px);
}

.adx-services-cta--lg {
  margin-top: 8px;
  padding: 18px 32px;
}

.adx-services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.adx-service-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid rgba(21, 21, 21, 0.1);
  transition: background 0.35s ease, padding 0.35s ease;
}

.adx-service-item:last-child {
  border-bottom: 1px solid rgba(21, 21, 21, 0.1);
}

.adx-service-item:hover {
  background: rgba(255, 255, 255, 0.55);
  padding-left: 12px;
  padding-right: 12px;
}

.adx-service-index {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.adx-service-index span {
  font-family: "Bai Jamjuree", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #151515;
}

.adx-service-index em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.adx-service-body h3 {
  margin: 0 0 12px;
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: clamp(22px, 2.2vw, 28px) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em;
  color: #151515 !important;
}

.adx-service-body p {
  margin: 0;
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: #3a3a3a !important;
  max-width: 62ch;
}

@media (max-width: 767px) {
  .adx-services-pillars.adx-project-stats.e-con,
  .adx-services-pillars.adx-project-stats.e-con > .e-con-inner {
    flex-wrap: wrap !important;
  }

  .adx-services-pillars.adx-project-stats > .adx-project-stat.e-con,
  .adx-services-pillars.adx-project-stats .adx-project-stat.e-con {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .adx-service-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 0;
  }

  .adx-service-item:hover {
    padding-left: 0;
    padding-right: 0;
  }

  .adx-service-index {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .adx-services-side.e-con {
    position: static;
    top: auto;
  }

  .adx-services-side.adx-project-media img {
    min-height: 260px;
    height: 48vh;
    max-height: none;
  }

  .adx-services-next__text {
    max-width: none;
    font-size: 17px !important;
  }
}

/* —— Portfolio grid —— */
.adx-portfolio-grid.e-con,
.adx-portfolio-grid.e-con > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

.adx-portfolio-item.e-con {
  width: calc(50% - 14px) !important;
  max-width: calc(50% - 14px) !important;
  flex: 0 0 calc(50% - 14px) !important;
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.adx-portfolio-item.e-con:nth-child(odd):last-child {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.adx-portfolio-item.e-con:nth-child(odd):last-child .adx-portfolio-thumb img {
  height: clamp(300px, 48vh, 560px) !important;
}

.adx-portfolio-item.e-con:hover {
  transform: translateY(-4px);
}

.adx-portfolio-thumb img {
  width: 100% !important;
  height: clamp(260px, 38vh, 460px) !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.7s ease, filter 0.35s ease;
}

.adx-portfolio-item:hover .adx-portfolio-thumb img {
  transform: scale(1.04);
  filter: brightness(0.92);
}

.adx-portfolio-caption,
.adx-portfolio-caption p {
  margin: 0 !important;
}

.adx-portfolio-meta {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 4px 8px;
}

.adx-portfolio-index {
  font-family: "Bai Jamjuree", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #8a8a8a;
  padding-top: 6px;
}

.adx-portfolio-copy h3 {
  margin: 0 0 8px;
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: clamp(22px, 2.4vw, 30px) !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em;
  color: #151515 !important;
}

.adx-portfolio-copy p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 !important;
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  color: #6b6b6b !important;
}

.adx-portfolio-copy em {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

@media (max-width: 767px) {
  .adx-portfolio-item.e-con {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .adx-portfolio-thumb img {
    height: 52vw !important;
    min-height: 220px;
  }
}

/* —— Responsive: tablet + mobile polish —— */
body.archidex-project {
  overflow-x: clip;
}

@media (max-width: 1024px) {
  .adx-project-info.e-con,
  .adx-project-info.e-con > .e-con-inner,
  .adx-services-grid.e-con,
  .adx-services-grid.e-con > .e-con-inner {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 28px !important;
  }

  .adx-project-info > .e-con,
  .adx-project-info .e-con-inner > .e-con,
  .adx-services-grid > .e-con,
  .adx-services-grid .e-con-inner > .e-con,
  .adx-services-side.e-con,
  .adx-project-media.e-con {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    --width: 100% !important;
  }

  .adx-services-side.e-con {
    position: static;
    top: auto;
  }

  .adx-project-header.e-con {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .adx-project-title-block.e-con,
  .adx-project-footer.e-con,
  .adx-project-stats.e-con,
  .adx-about-closing.e-con {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .adx-project-nav {
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .adx-project-header.e-con,
  .adx-project-header.e-con > .e-con-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .adx-project-header .elementor-widget-image,
  .adx-project-header .adx-brand-logo {
    width: 100% !important;
    max-width: 100% !important;
  }

  .adx-project-header .elementor-widget-image img,
  .adx-project-header .adx-brand-logo img {
    height: 32px !important;
    max-width: min(100%, 240px) !important;
  }

  .adx-project-nav {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
  }

  .adx-project-nav a {
    font-size: 13px;
    line-height: 1.3;
  }

  .adx-project-title-block.e-con,
  .adx-project-footer.e-con,
  .adx-project-stats.e-con,
  .adx-about-closing.e-con,
  .adx-project-info.e-con,
  .adx-services-grid.e-con {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .adx-project-meta-row.e-con,
  .adx-project-meta-row.e-con > .e-con-inner,
  .adx-project-footer.e-con,
  .adx-project-footer.e-con > .e-con-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .adx-project-meta,
  .adx-contact-value {
    text-align: left !important;
    max-width: none !important;
  }

  .adx-about-contact li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .adx-project-intro .elementor-heading-title {
    font-size: clamp(18px, 5.2vw, 26px) !important;
  }

  .adx-project-stat .elementor-heading-title {
    font-size: clamp(24px, 7vw, 34px) !important;
  }

  .adx-project-media img,
  .adx-services-side.adx-project-media img {
    min-height: 240px !important;
    height: 48vh !important;
    max-height: 420px;
  }

  .adx-contact-form-wrap {
    padding: 22px 16px 26px !important;
  }

  .adx-portfolio-meta {
    gap: 12px;
    padding-top: 14px;
  }

  .adx-services-pillars.adx-project-stats > .adx-project-stat.e-con,
  .adx-services-pillars.adx-project-stats .adx-project-stat.e-con {
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .adx-project-nav {
    gap: 8px 12px !important;
  }

  .adx-project-nav a {
    font-size: 13px;
    padding: 4px 0;
  }

  .adx-project-stats > .adx-project-stat.e-con,
  .adx-project-stats .adx-project-stat.e-con {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .adx-portfolio-thumb img,
  .adx-portfolio-item.e-con:nth-child(odd):last-child .adx-portfolio-thumb img {
    height: 58vw !important;
    min-height: 200px !important;
  }
}

/* adx-credit-alireza */


/* Designer credit */
.adx-project-facts .elementor-icon-list-item:first-child .elementor-icon-list-icon {
  width: 4px !important;
  height: 22px !important;
  min-height: 22px;
  margin-inline-end: 12px !important;
  background: #6ec1e4;
  border-radius: 1px;
}

.adx-project-facts .elementor-icon-list-item:first-child .elementor-icon-list-icon svg,
.adx-project-facts .elementor-icon-list-item:first-child .elementor-icon-list-icon i {
  display: none !important;
}

.adx-project-facts .elementor-icon-list-item:first-child .elementor-icon-list-text {
  font-size: 16px;
  font-weight: 600;
  color: #111111;
}


/* adx-sheet-gallery: compact plan / diagram index */
.adx-sheet-gallery .e-gallery-item {
  background: #f6f4ef;
  outline: 1px solid rgba(21, 21, 21, 0.08);
  outline-offset: -1px;
}

.adx-sheet-gallery .e-gallery-image {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-color: #f6f4ef !important;
}

.adx-sheet-gallery .e-gallery-item:hover .e-gallery-image {
  transform: none;
}


/* Awards */
.adx-project-nav { gap: 22px; flex-wrap: wrap; }
.adx-awards { width: min(1080px, calc(100% - 64px)); margin: 0 auto; padding: 64px 0 24px; }
.adx-awards-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #6b6b6b; }
.adx-awards-title { margin: 0; font-family: "Bai Jamjuree", sans-serif; font-size: clamp(42px, 6vw, 68px); font-weight: 500; letter-spacing: -0.04em; line-height: 0.95; color: #151515; }
.adx-awards-lead { max-width: 42rem; margin: 16px 0 8px; font-size: 17px; line-height: 1.6; color: #2a2a2a; }
.adx-award { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 28px 40px; padding: 36px 0; border-top: 1px solid rgba(21, 21, 21, 0.1); }
.adx-award:last-of-type { border-bottom: 1px solid rgba(21, 21, 21, 0.1); }
.adx-award-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #6b6b6b; }
.adx-award h2 { margin: 0 0 10px; font-family: "Bai Jamjuree", sans-serif; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; color: #151515; }
.adx-award p { margin: 0; font-size: 15px; line-height: 1.6; color: #2a2a2a; }
.adx-award-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.adx-award-shots.is-single { grid-template-columns: minmax(0, 460px); }
.adx-shot { display: block; background: #fff; border: 1px solid rgba(21, 21, 21, 0.08); overflow: hidden; text-decoration: none; }
.adx-shot img { display: block; width: 100%; height: 300px; object-fit: contain; background: #fff; transition: transform 0.6s ease; }
.adx-shot:hover img { transform: scale(1.02); }
.adx-shot span { display: block; padding: 10px 12px 12px; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #6b6b6b; }
.adx-award-lightbox[hidden] { display: none !important; }
.adx-award-lightbox { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 56px 88px 72px; background: rgba(21, 21, 21, 0.88); }
.adx-award-lightbox img { max-width: min(1040px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; background: #fff; }
.adx-award-lightbox-title { position: absolute; left: 24px; right: 24px; bottom: 18px; margin: 0; text-align: center; color: #f7f6f3; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.adx-award-close, .adx-award-nav { position: absolute; border: 0; background: transparent; color: #f7f6f3; font-family: "Bai Jamjuree", sans-serif; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.adx-award-close { top: 18px; right: 22px; }
.adx-award-nav.prev { left: 18px; top: 50%; }
.adx-award-nav.next { right: 18px; top: 50%; }
@media (max-width: 800px) {
  .adx-awards { width: min(100% - 32px, 1080px); padding-top: 36px; }
  .adx-award { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .adx-award-shots, .adx-award-shots.is-single { grid-template-columns: 1fr; }
  .adx-shot img { height: 240px; }
  .adx-award-lightbox { padding: 64px 16px 80px; }
  .adx-project-nav { gap: 12px 16px; }
}

/* About page monogram: keep it as a mark, not a full-bleed photo */
.elementor-46 .adx-project-media.e-con,
.elementor-323 .adx-project-media.e-con {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  padding: 8px 40px 48px !important;
  background: transparent;
}
.elementor-46 .adx-project-media img,
.elementor-323 .adx-project-media img {
  width: auto !important;
  max-width: min(200px, 46%) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 172px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}
@media (max-width: 767px) {
  .elementor-46 .adx-project-media.e-con,
  .elementor-323 .adx-project-media.e-con {
    padding: 24px 20px 8px !important;
  }
  .elementor-46 .adx-project-media img,
  .elementor-323 .adx-project-media img {
    max-width: 140px !important;
    max-height: 120px !important;
    height: auto !important;
    min-height: 0 !important;
  }
}

/* About people */
.adx-people,
.adx-associates {
  width: 100%;
  margin: 0;
  padding: 8px 0 12px;
}
.adx-people {
  border-top: 1px solid rgba(21, 21, 21, 0.1);
}
.elementor-46 .adx-about-closing.e-con,
.elementor-323 .adx-about-closing.e-con {
  padding-bottom: 48px !important;
}
.adx-people-kicker,
.adx-associates-kicker {
  margin: 28px 0 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.adx-people-title,
.adx-associates-title {
  margin: 0 0 36px;
  font-family: "Bai Jamjuree", Vazirmatn, sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #151515;
}
.adx-associates-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 28px;
}
.adx-people-founder {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 28px 56px;
  align-items: end;
  max-width: 860px;
}
.adx-people-founder .adx-person-photo {
  margin: 0;
}
.adx-people-founder .adx-person-copy {
  padding-bottom: 10px;
  max-width: 28rem;
}
.adx-associates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
  max-width: 720px;
}
.adx-person {
  min-width: 0;
}
.adx-person-photo {
  position: relative;
  margin: 0 0 18px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0d0d17;
}
.adx-person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform 0.7s ease;
}
.adx-person:hover .adx-person-photo img {
  transform: scale(1.03);
}
.adx-person-photo.is-placeholder img {
  object-position: center;
  transform: none;
}
.adx-person-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6%;
  font-family: "Bai Jamjuree", Vazirmatn, sans-serif;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #f4f0e8;
  pointer-events: none;
}
.adx-person-role {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.adx-person h3 {
  margin: 0 0 12px;
  font-family: "Bai Jamjuree", Vazirmatn, sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #151515;
}
.adx-people-founder h3 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 16px;
}
.adx-person-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.adx-person-lines li {
  margin: 0;
  padding: 7px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #2a2a2a;
}
.adx-person-lines li:first-child {
  padding-top: 0;
}
html[dir="rtl"] .adx-people-kicker,
html[dir="rtl"] .adx-associates-kicker,
html[dir="rtl"] .adx-person-role {
  letter-spacing: 0.1em;
}
html[dir="rtl"] .adx-person-initials {
  letter-spacing: 0.12em;
}
@media (max-width: 1024px) {
  .adx-people-wrap.e-con,
  .adx-associates-wrap.e-con {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .adx-people-founder {
    gap: 24px 36px;
  }
  .adx-person h3 {
    font-size: 20px;
  }
}
@media (max-width: 767px) {
  .adx-people-wrap.e-con,
  .adx-associates-wrap.e-con {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .adx-people-title,
  .adx-associates-title {
    margin-bottom: 24px;
  }
  .adx-people-founder,
  .adx-associates-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 22px;
  }
  .adx-people-founder {
    align-items: start;
  }
}

