.as-services-page {
  --svc-ink: #0f1922;
  --svc-muted: #626b74;
  --svc-gold: #bc8d50;
  --svc-bronze: #8c6638;
  --svc-beige: #f8f7f4;
  --svc-line: #ded8ce;
  --as-services-header-height: 96px;

  position: relative;
  isolation: isolate;
  padding: var(--as-services-header-height) 0 70px;
  background: var(--svc-beige);
  color: var(--svc-ink);
  font: 400 15px/1.7 'Inter', Arial, sans-serif;
}

.as-services-page *,
.as-services-page *::before,
.as-services-page *::after {
  box-sizing: border-box;
}

.as-services-page [hidden] {
  display: none !important;
}

.as-services-page :where(h1, h2, h3, p, figure) {
  margin: 0;
}

.as-services-page h1,
.as-services-page h2,
.as-services-page h3 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-style: normal;
  color: var(--svc-ink);
}

.as-services-page a {
  text-decoration: none;
}

.as-services-page a:focus-visible {
  outline: 3px solid var(--svc-gold);
  outline-offset: 5px;
}

.as-services-container,
.as-services-hero-inner {
  width: min(calc(100% - 104px), 1240px);
  margin-inline: auto;
}

.as-services-page .as-services-eyebrow {
  color: var(--svc-bronze);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .16em;
}

/* HERO */

.as-services-page .as-services-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 500px;
  padding: 50px 0;
  overflow: hidden;
  background: var(--svc-beige);
}

.as-services-hero-art,
.as-services-hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.as-services-hero-art {
  z-index: -2;
}

.as-services-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.as-services-hero-shade {
  z-index: -1;
  background: linear-gradient(
    90deg,
    #f8f7f4 0%,
    rgba(248, 247, 244, .99) 25%,
    rgba(248, 247, 244, .94) 39%,
    rgba(248, 247, 244, .70) 49%,
    rgba(248, 247, 244, .24) 64%,
    rgba(248, 247, 244, 0) 84%
  );
}

.as-services-hero-copy {
  width: min(100%, 470px);
  text-align: left;
}

.as-services-hero .as-services-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
}

.as-services-hero .as-services-eyebrow::before {
  content: '';
  width: 27px;
  height: 1px;
  flex: none;
  background: currentColor;
}

.as-services-page .as-services-hero h1 {
  max-width: 470px;
  margin-top: 22px;
  font-size: clamp(42px, 5.2vw, 57px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.052em;
  white-space: normal;
}

.as-services-hero h1 span {
  display: block;
  color: var(--svc-bronze);
}

.as-services-page .as-services-hero-description {
  max-width: 355px;
  margin-top: 22px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
}

.as-services-page .as-services-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 13px 23px;
  border: 1px solid var(--svc-ink);
  background: var(--svc-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  transition:
    background-color .2s ease,
    border-color .2s ease;
}

.as-services-explore:hover {
  background: #263744;
  border-color: #263744;
}


/* SHORT INTRODUCTION */

.as-services-work {
  padding: 0 0 58px;
  scroll-margin-top: calc(var(--as-services-header-height) + 16px);
  background: #fff;
}

.as-services-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 34px 0;
  border-bottom: 1px solid var(--svc-line);
}

.as-services-section-heading h2 {
  font-size: 29px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.as-services-section-heading h2 span {
  display: block;
  color: var(--svc-bronze);
}

.as-services-page .as-services-section-description {
  max-width: 350px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}


/* SERVICE ROWS */

.as-services-list {
  display: block;
}

.as-service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  column-gap: clamp(30px, 4vw, 60px);
  padding: 35px 0;
  border-bottom: 1px solid var(--svc-line);
}

.as-service-figure {
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: #e8e1d6;
}

.as-service-figure > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}

.as-service-row:hover .as-service-figure > img {
  transform: scale(1.025);
}

.as-service-drafting {
  position: absolute;
  z-index: 2;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .62);
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, .18) 1px,
      transparent 1px
    ) 0 0 / 72px 72px,
    linear-gradient(
      rgba(255, 255, 255, .15) 1px,
      transparent 1px
    ) 0 0 / 72px 72px;

  -webkit-mask-image: linear-gradient(
    135deg,
    #000 0%,
    rgba(0, 0, 0, .4) 23%,
    transparent 63%
  );

  mask-image: linear-gradient(
    135deg,
    #000 0%,
    rgba(0, 0, 0, .4) 23%,
    transparent 63%
  );
}

.as-service-figure::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 29%;
  background: linear-gradient(
    0deg,
    rgba(15, 25, 34, .24),
    transparent
  );
  pointer-events: none;
}

.as-service-image-label {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  max-width: min(88%, 425px);
  min-height: 48px;
  padding: 13px 17px 13px 0;
  background: #111c27;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 25, 34, .13);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: clamp(14px, 1.15vw, 17px);
  font-style: normal;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.as-service-image-label-mark {
  width: 5px;
  align-self: stretch;
  flex: none;
  background: var(--svc-gold);
}

.as-service-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--svc-muted);
  font-size: 13px;
  text-align: center;
}

.as-service-content {
  min-width: 0;
  max-width: 520px;
  padding: 5px 0;
}

.as-service-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px !important;
  color: #a47c48;
  font: 700 11px/1.5 'Inter', Arial, sans-serif;
  letter-spacing: .15em;
}

.as-service-content h3 {
  max-width: 460px;
  margin-bottom: 13px !important;
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.042em;
  text-wrap: balance;
}

.as-services-page .as-service-description {
  max-width: 470px;
  color: #4f5c67;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
}

.as-services-page .as-service-focus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 9px;
  row-gap: 4px;
  margin-top: 21px;
  color: #927450;
  font: 600 12px/1.65 'Inter', Arial, sans-serif;
  letter-spacing: .008em;
}

.as-service-focus-rule {
  width: 27px;
  height: 2px;
  margin-right: 4px;
  flex: none;
  background: var(--svc-gold);
}

.as-service-focus-dot {
  color: #c6aa87;
}

.as-service-row-reverse .as-service-figure {
  grid-column: 2;
  grid-row: 1;
}

.as-service-row-reverse .as-service-content {
  grid-column: 1;
  grid-row: 1;
}


/* CONTACT SECTION */

.as-services-cta {
  width: min(calc(100% - 104px), 1240px);
  margin: 56px auto 0;
  padding: 50px clamp(25px, 5vw, 68px);
  border-top: 2px solid var(--svc-gold);
  background: #eee7db;
}

.as-services-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.as-services-cta .as-services-eyebrow {
  margin-bottom: 14px;
}

.as-services-cta h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.04em;
}

.as-services-page .as-services-cta-description {
  max-width: 500px;
  color: var(--svc-muted);
  font-size: 14px;
}

.as-services-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-width: 161px;
  min-height: 51px;
  padding: 14px 24px;
  border: 1px solid var(--svc-ink);
  background: transparent;
  color: var(--svc-ink);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background-color .2s ease,
    color .2s ease;
}

.as-services-button span {
  color: var(--svc-gold);
  font-size: 19px;
}

.as-services-button:hover {
  background: var(--svc-ink);
  color: #fff;
}


/* TABLETS */

@media (max-width: 1080px) {
  .as-services-container,
  .as-services-hero-inner,
  .as-services-cta {
    width: calc(100% - 70px);
  }

  .as-service-content h3 {
    font-size: clamp(25px, 3vw, 34px);
  }
}

@media (max-width: 820px) {
  .as-service-row {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 30px 0;
  }

  .as-service-row-reverse .as-service-figure,
  .as-service-row-reverse .as-service-content {
    grid-column: auto;
    grid-row: auto;
  }

  .as-service-content {
    max-width: 600px;
  }

  .as-services-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
  }
}


/* MOBILE HERO AND INTRODUCTION */

@media (max-width: 760px) {
  .as-services-container,
  .as-services-hero-inner {
    width: calc(100% - 48px);
  }

  .as-services-page .as-services-hero {
    min-height: 610px;
    align-items: flex-start;
    padding: 38px 0;
  }

  .as-services-hero-art img {
    object-position: 50% 60%;
  }

  .as-services-hero-shade {
    background: linear-gradient(
      180deg,
      #f8f7f4 0%,
      rgba(248, 247, 244, .99) 33%,
      rgba(248, 247, 244, .94) 43%,
      rgba(248, 247, 244, .65) 54%,
      rgba(248, 247, 244, .10) 73%,
      rgba(248, 247, 244, 0) 91%
    );
  }

  .as-services-page .as-services-hero h1 {
    margin-top: 20px;
    font-size: clamp(35px, 7vw, 49px);
  }

  .as-services-page .as-services-hero-description {
    max-width: 390px;
    margin-top: 18px;
  }

  .as-services-page .as-services-explore {
    margin-top: 23px;
  }

  .as-services-section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .as-services-page .as-services-section-description {
    max-width: 390px;
  }
}


/* SMALL PHONES */

@media (max-width: 560px) {
  .as-services-work {
    padding-bottom: 48px;
  }

  .as-service-row {
    gap: 19px;
    padding: 28px 0;
  }

  .as-service-image-label {
    bottom: 14px;
    max-width: 92%;
    min-height: 47px;
    padding: 11px 12px 11px 0;
    font-size: clamp(13px, 4.1vw, 17px);
  }

  .as-service-image-label-mark {
    width: 4px;
  }

  .as-service-content h3 {
    font-size: 30px;
  }

  .as-services-page .as-service-description {
    font-size: 14px;
  }

  .as-services-page .as-service-focus {
    margin-top: 16px;
    column-gap: 7px;
    font-size: 11px;
  }

  .as-service-focus-rule {
    width: 22px;
  }

  .as-services-cta {
    width: calc(100% - 32px);
    margin-top: 40px;
    padding: 35px 23px;
  }

  .as-services-cta h2 {
    font-size: 29px;
  }
}

@media (max-width: 380px) {
  .as-services-container,
  .as-services-hero-inner {
    width: calc(100% - 40px);
  }

  .as-services-page .as-services-hero h1 {
    font-size: 35px;
  }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .as-services-page *,
  .as-services-page *::before,
  .as-services-page *::after {
    transition: none !important;
    animation: none !important;
  }
}
/* SERVICES INTRODUCTION */

.as-services-page .as-services-intro {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: 34px 0 30px;
  border-bottom: 1px solid #ded8ce;
}

.as-services-intro .as-services-intro-title {
  position: relative;
  min-width: 0;
  padding-left: 23px;
}

/* Architectural accent beside the title */
.as-services-intro-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  background: #bc8d50;
}

.as-services-page .as-services-intro h2 {
  margin: 0;
  color: #0f1922;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.as-services-page .as-services-intro h2 span {
  display: inline;
  color: #8c6638;
  white-space: nowrap;
}

.as-services-page .as-services-intro .as-services-section-description {
  max-width: 360px;
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

/* Gold detail connected to the services divider */
.as-services-intro::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 2px;
  background: #bc8d50;
  transform-origin: left center;
}

/* One-time entrance */
.as-services-intro.has-intro-motion::after {
  transform: scaleX(.2);
  transition: transform 900ms cubic-bezier(.2, .7, .3, 1);
}

.as-services-intro.has-intro-motion .as-services-intro-title,
.as-services-intro.has-intro-motion .as-services-section-description {
  transform: translateY(8px);
  transition: transform 700ms cubic-bezier(.2, .7, .3, 1);
}

.as-services-intro.has-intro-motion .as-services-section-description {
  transition-delay: 100ms;
}

.as-services-intro.has-intro-motion.is-intro-visible::after {
  transform: scaleX(1);
}

.as-services-intro.has-intro-motion.is-intro-visible .as-services-intro-title,
.as-services-intro.has-intro-motion.is-intro-visible .as-services-section-description {
  transform: none;
}

/* Mobile */
@media (max-width: 760px) {
  .as-services-page .as-services-intro {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0 26px;
  }

  .as-services-page .as-services-intro h2 {
    font-size: clamp(30px, 6vw, 36px);
  }

  .as-services-page .as-services-intro .as-services-section-description {
    max-width: 390px;
    padding-left: 23px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .as-services-intro.has-intro-motion::after,
  .as-services-intro.has-intro-motion .as-services-intro-title,
  .as-services-intro.has-intro-motion .as-services-section-description {
    transform: none;
    transition: none;
  }
}
