/* Structured interior pages */
.compact-interior-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 27, 42, .032) 1px, transparent 1px),
    linear-gradient(rgba(7, 27, 42, .032) 1px, transparent 1px),
    var(--limestone);
  background-size: 72px 72px;
}

.compact-interior-hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -185px;
  bottom: -285px;
  border: 1px solid rgba(31, 85, 255, .22);
  border-radius: 47% 53% 43% 57%;
  transform: rotate(19deg);
}

.service-detail-hero-grid,
.structured-page-hero-grid {
  min-height: 610px;
  padding-block: clamp(72px, 8vw, 106px);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .68fr);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
}

.service-detail-hero-copy,
.structured-page-hero-copy {
  min-width: 0;
}

.service-detail-hero h1,
.structured-page-hero h1 {
  max-width: 850px;
  margin: 16px 0 23px;
  font-size: clamp(3.15rem, 5vw, 5.35rem);
}

.service-detail-hero .interior-lead,
.structured-page-hero .interior-lead {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
}

.service-detail-actions,
.structured-page-actions {
  margin-top: 30px;
}

.service-signal-panel,
.structured-page-aside {
  min-width: 0;
  padding: clamp(30px, 3.8vw, 44px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(53, 216, 208, .11), transparent 48%),
    var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 26px;
  box-shadow: 0 32px 76px rgba(7, 27, 42, .22);
  color: #fff;
}

.service-signal-panel::after,
.structured-page-aside::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -74px;
  top: -78px;
  border: 1px solid rgba(53, 216, 208, .28);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(53, 216, 208, .035);
  pointer-events: none;
}

.service-signal-panel h2,
.structured-page-aside h2 {
  margin: 20px 0 28px;
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 3vw, 3rem);
}

.service-signal-list,
.clear-scope-signal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.service-signal-list li,
.clear-scope-signal-list li {
  min-height: 66px;
  padding-block: 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line-light);
}

.service-signal-list span,
.clear-scope-signal-list span {
  color: var(--cyan);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .09em;
}

.service-signal-list strong,
.clear-scope-signal-list strong {
  font-size: .78rem;
  line-height: 1.45;
}

.service-detail-intro,
.structured-page-intro {
  background: var(--paper);
}

.service-detail-intro-grid,
.structured-page-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(430px, 1.18fr);
  align-items: start;
  gap: clamp(55px, 9vw, 135px);
}

.service-detail-intro-grid h2,
.structured-page-intro-grid h2 {
  max-width: 650px;
  margin: 14px 0 0;
  font-size: clamp(2.3rem, 4vw, 4.25rem);
}

.service-detail-intro-copy,
.structured-page-intro-copy {
  padding-top: 2px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.service-detail-intro-copy > :first-child,
.structured-page-intro-copy > :first-child,
.structured-section-copy > :first-child,
.structured-card-copy > :first-child,
.structured-faq-answer > :first-child {
  margin-top: 0;
}

.service-detail-intro-copy > :last-child,
.structured-page-intro-copy > :last-child,
.structured-section-copy > :last-child,
.structured-card-copy > :last-child,
.structured-faq-answer > :last-child {
  margin-bottom: 0;
}

.structured-card-section,
.structured-narrative-section {
  background: var(--paper);
}

.structured-card-section-secondary,
.structured-narrative-section:nth-of-type(even) {
  background: var(--limestone);
}

.structured-card-section + .structured-card-section,
.structured-narrative-section + .structured-card-section,
.structured-card-section + .structured-narrative-section {
  border-top: 1px solid var(--line);
}

.structured-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .68fr);
  align-items: end;
  gap: clamp(42px, 8vw, 112px);
}

.structured-section-heading h2 {
  max-width: 810px;
  margin: 14px 0 0;
}

.structured-section-heading > p,
.structured-section-heading > .structured-section-copy {
  max-width: 550px;
  margin: 0;
  justify-self: end;
  color: var(--muted);
}

.structured-card-grid {
  margin-top: clamp(48px, 6vw, 68px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.structured-card {
  min-width: 0;
  min-height: 285px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--limestone);
  border: 1px solid var(--line);
  border-radius: 21px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.structured-card-section-secondary .structured-card {
  background: var(--paper);
}

.structured-card:nth-child(3n + 2) {
  background: #e2f6f2;
}

.structured-card:nth-child(3n) {
  background: #f2ca73;
}

.structured-card:hover {
  border-color: rgba(31, 85, 255, .4);
  box-shadow: 0 22px 52px rgba(7, 27, 42, .11);
  transform: translateY(-4px);
}

.structured-card-number {
  color: var(--cobalt);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .11em;
}

.structured-card h3 {
  margin: auto 0 14px;
  padding-top: 54px;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
}

.structured-card-copy {
  color: var(--muted);
  font-size: .87rem;
}

.structured-card-copy p {
  margin-bottom: 0;
}

.structured-narrative-inner {
  max-width: 980px;
}

.structured-narrative-inner > h2 {
  max-width: 760px;
}

.structured-prose-items {
  margin-top: 45px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.structured-prose-item {
  padding: 28px;
  background: var(--limestone);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.structured-prose-item h3 {
  margin-bottom: 12px;
}

.structured-prose-item p {
  color: var(--muted);
}

.structured-faq-section {
  background:
    radial-gradient(circle at 14% 18%, rgba(53, 216, 208, .16), transparent 22%),
    #edf2ff;
  border-top: 1px solid rgba(31, 85, 255, .13);
}

.structured-faq-grid {
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr);
  gap: clamp(58px, 9vw, 125px);
}

.structured-faq-heading {
  position: sticky;
  top: 132px;
  align-self: start;
}

.structured-faq-heading h2 {
  margin: 14px 0 18px;
}

.structured-faq-heading .structured-section-copy {
  color: var(--muted);
}

.structured-faq-answer {
  padding: 0 0 24px;
  color: var(--muted);
}

.service-related-section {
  background:
    radial-gradient(circle at 88% 16%, rgba(31, 85, 255, .28), transparent 28%),
    var(--ink-2);
  color: #fff;
}

.service-related-section .section-kicker,
.service-related-card .mini-label {
  color: var(--cyan);
}

.service-related-section .structured-section-heading > p {
  color: rgba(255, 255, 255, .66);
}

.service-related-grid {
  margin-top: clamp(48px, 6vw, 68px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-related-card {
  min-width: 0;
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line-light);
  border-radius: 20px;
}

.service-related-card h3 {
  margin: auto 0 14px;
  padding-top: 46px;
}

.service-related-card > p:not(.mini-label) {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .67);
  font-size: .86rem;
}

.service-related-card a {
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.structured-page-aside > p:not(.mini-label) {
  color: rgba(255, 255, 255, .68);
}

.structured-page-aside a {
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.portfolio-context-lead {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.portfolio-context-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(55px, 9vw, 130px);
}

.portfolio-context-lead-grid h2 {
  margin: 14px 0 0;
}

.portfolio-context-lead-copy {
  color: var(--muted);
  font-size: 1.02rem;
}

.portfolio-context-lead-copy > :first-child {
  margin-top: 0;
}

.portfolio-context-lead-copy > :last-child {
  margin-bottom: 0;
}

.structured-about-aside {
  padding: 0;
}

.structured-about-aside::after {
  z-index: 2;
}

.structured-about-aside img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: 50% 34%;
}

.structured-about-aside > div {
  padding: 28px 32px 32px;
}

.structured-about-aside h2 {
  margin: 11px 0 13px;
  font-size: clamp(2rem, 3vw, 2.65rem);
}

.structured-about-aside p:not(.mini-label) {
  margin-bottom: 18px;
  font-size: .82rem;
}

.location-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-chip-list span {
  padding: 7px 10px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  font-size: .68rem;
  font-weight: 750;
}

.legal-hero {
  min-height: 340px;
  padding-block: clamp(66px, 7vw, 94px);
  display: flex;
  align-items: center;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  max-width: 850px;
  margin: 14px 0 16px;
  font-size: clamp(3.1rem, 5.2vw, 5rem);
}

.legal-hero .interior-lead {
  margin-bottom: 0;
}

.legal-updated {
  margin: 22px 0 0;
  color: var(--steel);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legal-body {
  padding-block: clamp(66px, 8vw, 100px);
}

.legal-content {
  max-width: 900px;
}

.legal-intro {
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-section {
  margin-top: 52px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.legal-section > p,
.legal-subsection > p,
.legal-section li {
  color: var(--muted);
}

.legal-subsection {
  margin-top: 30px;
}

.legal-subsection h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.single-article .interior-hero h1,
.blog-index-hero h1 {
  font-size: clamp(3rem, 5.15vw, 5.25rem);
}

.page-id-970 .interior-hero,
.page-id-829 .interior-hero {
  min-height: 360px;
  padding-block: 72px;
}

@media (max-width: 1100px) {
  .service-detail-hero-grid,
  .structured-page-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
    gap: 44px;
  }

  .structured-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  .service-detail-hero-grid,
  .structured-page-hero-grid,
  .service-detail-intro-grid,
  .structured-page-intro-grid,
  .portfolio-context-lead-grid,
  .structured-section-heading,
  .structured-faq-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-hero-grid,
  .structured-page-hero-grid {
    min-height: 0;
    padding-block: 68px 78px;
  }

  .service-signal-panel,
  .structured-page-aside {
    width: min(100%, 700px);
  }

  .service-detail-intro-grid,
  .structured-page-intro-grid,
  .portfolio-context-lead-grid,
  .structured-section-heading,
  .structured-faq-grid {
    gap: 36px;
  }

  .structured-section-heading > p,
  .structured-section-heading > .structured-section-copy {
    justify-self: start;
  }

  .structured-faq-heading {
    position: static;
  }
}

@media (max-width: 640px) {
  .interior-hero:not(.contact-hero) {
    min-height: 0;
    padding-block: 58px 66px;
  }

  .interior-hero:not(.contact-hero) h1,
  .service-detail-hero h1,
  .structured-page-hero h1,
  .single-article .interior-hero h1,
  .blog-index-hero h1,
  .legal-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.85rem);
    line-height: 1;
  }

  .service-detail-hero-grid,
  .structured-page-hero-grid {
    padding-block: 56px 66px;
  }

  .service-detail-actions,
  .structured-page-actions {
    flex-direction: column;
  }

  .service-detail-actions .button,
  .structured-page-actions .button {
    width: 100%;
  }

  .service-signal-panel,
  .structured-page-aside {
    padding: 25px;
    border-radius: 20px;
  }

  .structured-about-aside {
    padding: 0;
  }

  .structured-about-aside > div {
    padding: 24px;
  }

  .service-detail-intro-grid h2,
  .structured-page-intro-grid h2 {
    font-size: clamp(2.25rem, 10vw, 3.15rem);
  }

  .structured-card-grid,
  .structured-prose-items,
  .service-related-grid {
    grid-template-columns: 1fr;
  }

  .structured-card,
  .service-related-card {
    min-height: 240px;
    padding: 24px;
  }

  .structured-card h3,
  .service-related-card h3 {
    padding-top: 38px;
  }

  .services-card,
  .services-core-card {
    min-height: 235px;
  }

  .legal-body {
    padding-block: 60px;
  }

  .legal-section {
    margin-top: 40px;
    padding-top: 32px;
  }
}
