.zm-studio-home {
  --studio-paper: #faf9f6;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 35vw, 700px);
  background: var(--studio-paper);
}

.zm-studio-copy {
  position: relative;
  z-index: 1;
  padding-block: clamp(44px, 5.5vw, 104px);
}

.zm-studio-copy h1 {
  max-width: min(43vw, 650px);
  margin: 0;
  font-size: clamp(40px, 4.15vw, 72px);
  line-height: 1.025;
  letter-spacing: -.032em;
}

.zm-studio-copy h1 span {
  display: block;
  color: var(--zui-green);
}

.zm-studio-copy .zui-lead {
  max-width: min(39vw, 43ch);
  margin: clamp(15px, 1.7vw, 24px) 0;
  color: #394a46;
  text-wrap: pretty;
}

.zm-studio-copy .zui-actions { gap: 6px 22px; }
.zm-studio-copy .zui-button { border-radius: 12px; }

.zm-studio-scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 45% 36%, #eae2d3, transparent 54%),
    linear-gradient(130deg, var(--studio-paper), #f2f0e8);
}

.zm-studio-scene img {
  margin-left: auto;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 40%;
  mask-image: linear-gradient(90deg, transparent, #000 24%);
}

.zm-studio-scene::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(to top, var(--studio-paper), transparent 18%),
    linear-gradient(90deg, var(--studio-paper), rgba(250,249,246,.94) 25%, transparent 53%);
}

.zm-studio-home + #routes.zm-pathway-carousel--index {
  margin-top: 0;
  padding-top: clamp(14px, 2.2vw, 34px);
  background: linear-gradient(var(--studio-paper, #faf9f6), #fff 290px, #f7fafb);
}

.zm-studio-home + #routes > .zm-container {
  max-width: var(--zm-max);
}

.zm-studio-home + #routes .zm-pathway-stage {
  border: 1px solid #d4ded6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(41, 63, 51, .065);
}

.zm-studio-home + #routes .zm-pathway-tab-shell,
.zm-studio-home + #routes .zm-pathway-content {
  background: linear-gradient(115deg, #f1f5f0, #fff 75%);
}

.zm-studio-home + #routes .zm-pathway-tabs button[aria-selected="true"] {
  background: #e5eee6;
}

#routes .zm-pathway-content {
  padding-block: 12px;
  row-gap: 8px;
}

#services .zm-direction-heading-accent { color: var(--brand-green); }
body.zm-home #services .zm-service-grid > a {
  --zm-card-fill: linear-gradient(110deg, var(--brand-paper), #fff 75%);
}
body.zm-home #services .zm-direction-scope li::before { background: var(--brand-icon); }
body.zm-home #services .zm-direction-card-link { color: var(--brand-indigo); }
body.zm-home #services .zm-service-grid > a:is(:hover, :focus-visible) .zm-direction-card-link {
  color: var(--brand-indigo-hover);
}

#approach {
  background: linear-gradient(#fff, var(--brand-paper) 35%, var(--brand-paper) 85%, #fff);
  padding-block: clamp(44px, 5vw, 64px);
}
#approach h2 { font-size: clamp(32px, 3.5vw, 44px); }
#approach h2 span { color: var(--brand-green); }
#approach .zm-section-heading { gap: 18px 32px; margin-bottom: 24px; }
#approach .zm-heading-proof { padding: 0; border: 0; }
#approach .zm-heading-proof > strong { font-size: 20px; }
#approach .zm-commercial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  width: 100%;
  gap: 18px;
  margin: 0;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}
#approach .zm-commercial-card {
  --card-inset: 16px;
  --zm-card-fill: linear-gradient(120deg, #fff, var(--brand-paper));
  min-height: 0;
  padding: 0 var(--card-inset);
}
#approach .zm-commercial-media {
  aspect-ratio: 8 / 5;
  margin: 0 calc(0px - var(--card-inset)) 14px;
  background: var(--brand-paper);
}
#approach .zm-commercial-card::before,
#approach .zm-commercial-media::after,
#approach .zm-commercial-next::before { content: none; }
#approach .zm-commercial-media img { object-position: center; filter: none; }
#approach .zm-commercial-tag {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-green);
  font-size: 12px;
  text-transform: none;
  margin-bottom: 6px;
}
#approach .zm-commercial-card h3 { margin-bottom: 8px; font-size: 22px; }
#approach .zm-commercial-card > p { font-size: 14px; line-height: 1.5; }
#approach .zm-commercial-card li { font-size: 13px; }
#approach .zm-commercial-card li::before {
  width: 4px;
  height: 4px;
  top: .6em;
  background: var(--brand-icon);
  animation: none;
  box-shadow: none;
}
#approach :is(.zm-commercial-link, .zm-commercial-next-link) { min-height: 46px; color: var(--brand-indigo); }
#approach :is(.zm-commercial-link, .zm-commercial-next-link):hover { color: var(--brand-indigo-hover); }
#approach a:focus-visible { outline: 2px solid var(--brand-indigo); outline-offset: -2px; }
#approach .zm-commercial-next { border-color: var(--brand-rule); }
#approach .zm-commercial-next-points svg { color: var(--brand-icon); background: var(--brand-paper); border-color: var(--brand-rule); }

#industries {
  padding-block: clamp(44px, 5vw, 64px);
  background: linear-gradient(#fff, var(--brand-paper) 38%, var(--brand-paper) 80%, #fff);
}
#industries .zm-industries-heading { gap: 18px 32px; margin-bottom: 20px; }
#industries h2 { font-size: clamp(32px, 3.5vw, 44px); }
#industries h2 span { color: var(--brand-green); }
#industries .zm-industries-summary { padding: 0; border: 0; }
#industries .zm-industries-summary strong { margin: 0; font-size: clamp(16px, 1.5vw, 20px); }
#industries .zm-industries-controls { margin-top: 10px; }
#industries .zm-industries-controls button { color: var(--brand-indigo); border-color: var(--brand-rule); }
#industries .zm-industries-controls button:hover:not(:disabled) { color: white; background: var(--brand-indigo); }
#industries .zm-industry-grid { scroll-behavior: auto; }
#industries .zm-industry-card {
  display: flex;
  height: auto;
  flex-direction: column;
  border: 1px solid var(--brand-rule);
  border-radius: 14px;
  background: white;
  box-shadow: 0 3px 12px rgb(40 64 52 / 7%);
}
#industries .zm-industry-card > img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  flex: none;
  object-position: center;
  transform: none;
}
#industries .zm-industry-card > div {
  grid-template-columns: minmax(0, 1fr) 28px;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  margin: 0;
  padding: 16px;
  box-shadow: none;
}
#industries .zm-industry-card h3 { grid-area: 1 / 1; align-self: center; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.14; }
#industries .zm-industry-card p { margin: 0; font-size: 14px; line-height: 1.45; }
#industries .zm-industry-card-arrow {
  grid-area: 1 / 2;
  align-self: start;
  width: 28px;
  height: 28px;
  border-color: var(--brand-rule);
  color: var(--brand-indigo);
  box-shadow: none;
}
#industries .zm-industry-card:is(:hover, :focus-visible) .zm-industry-card-arrow {
  color: white;
  background: var(--brand-indigo);
}
#industries .zm-industry-focus { grid-column: 1 / -1; margin-top: 6px; gap: 5px; }
#industries .zm-industry-focus li {
  padding: 4px 8px;
  color: var(--brand-green);
  background: var(--brand-paper);
  font-size: 12px;
  line-height: 1.25;
}
#industries :is(a, button, [data-industries-track]):focus-visible { outline: 2px solid var(--brand-indigo); outline-offset: -2px; }

#lead-partnership {
  padding-block: clamp(44px, 5vw, 64px);
  border: 0;
  background: linear-gradient(#fff, var(--brand-paper) 45%, #fff);
}
#lead-partnership .zm-section-heading { gap: 18px 32px; margin-bottom: 24px; }
#lead-steps-title { font-size: clamp(32px, 3.5vw, 44px); }
#lead-steps-title span { display: block; color: var(--brand-green); }
#lead-partnership .zm-heading-proof { max-width: 50ch; padding: 0; border: 0; }
#lead-partnership .zm-heading-proof-label { color: var(--brand-indigo); }
#lead-partnership .zm-heading-proof > strong { font-size: clamp(18px, 1.6vw, 22px); }
#lead-partnership .zm-heading-proof-line { width: 44px; background: var(--brand-rule); }
#lead-partnership .zm-lead-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  overflow: visible;
  scroll-snap-type: none;
}
#lead-partnership .zm-lead-step-card,
#lead-partnership .zm-lead-steps-footer {
  border: 1px solid var(--brand-rule);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(40 64 52 / 7%);
}
#lead-partnership .zm-lead-step-card { display: flex; overflow: hidden; transform: none; }
#lead-partnership .zm-heading-proof::before,
#lead-partnership .zm-lead-step-card::before,
#lead-partnership .zm-lead-step-card::after,
#lead-partnership .zm-lead-step-visual::after,
#lead-partnership .zm-lead-steps-footer::before { content: none; }
#lead-partnership .zm-lead-step-visual {
  width: 100%;
  min-height: 0;
  aspect-ratio: 3 / 2;
  flex: none;
  border: 0;
  border-radius: 0;
  background: var(--brand-paper);
}
#lead-partnership .zm-lead-step-visual img { object-position: center; transform: none; filter: none; }
#lead-partnership .zm-lead-step-copy { min-width: 0; padding: clamp(16px, 1.5vw, 22px); }
#lead-partnership .zm-lead-step-number { color: var(--brand-green); font-size: 13px; font-weight: 700; }
#lead-partnership .zm-lead-step-copy h3 { margin: 6px 0 9px; font-size: clamp(20px, 1.7vw, 24px); }
#lead-partnership .zm-lead-step-copy > p { min-height: 0; font-size: 15px; line-height: 1.5; }
#lead-partnership .zm-lead-step-copy .zm-lead-example {
  padding-top: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--brand-rule);
  color: var(--brand-green);
  font-size: 14px;
}
#lead-partnership .zm-lead-steps-footer {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(110deg, var(--brand-paper), #fff 85%);
}
#lead-partnership .zm-lead-footer-copy { grid-column: auto; gap: 6px; }
#lead-partnership .zm-lead-footer-copy strong { font-size: clamp(20px, 1.8vw, 24px); }
#lead-partnership .zm-lead-footer-copy span { max-width: 65ch; }
#lead-partnership .zm-button:focus-visible { outline: 2px solid var(--brand-indigo); outline-offset: 3px; }
@media (max-width: 960px) {
  #lead-partnership .zm-lead-step-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 621px) and (max-width: 960px) {
  #lead-partnership .zm-lead-step-card {
    display: grid;
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    align-items: center;
    background: linear-gradient(to right, var(--brand-paper) 40%, #fff 40%);
  }
}
@media (max-width: 620px) {
  #lead-partnership .zm-lead-steps-footer { grid-template-columns: minmax(0, 1fr); }
  #lead-partnership .zm-lead-steps-footer .zm-button { width: 100%; min-width: 0; }
}

@media (min-width: 761px) and (max-width: 1180px) {
  #industries .zm-industry-system ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
  #industries .zm-industry-system li { grid-template-columns: 44px minmax(0, 1fr); padding: 0; }
  #industries .zm-industry-step-icon { width: 44px; height: 44px; }
  #industries .zm-industry-step-arrow { display: none; }
}
@media (max-width: 760px) {
  #industries .zm-industry-grid { grid-auto-columns: min(85%, 365px); }
  #industries .zm-industry-card > div { padding: 14px; }
}

@media (max-width: 1180px) {
  #approach .zm-commercial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  #approach .zm-commercial-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 899px) {
  .zm-studio-home { min-height: 0; }
  .zm-studio-copy { padding-block: clamp(28px, 5vw, 44px) 16px; }
  .zm-studio-copy h1 { font-size: clamp(36px, 6.4vw, 54px); max-width: 22ch; }
  .zm-studio-copy .zui-lead { max-width: 49ch; margin-block: 14px 18px; }
  .zm-studio-scene { position: relative; inset: auto; aspect-ratio: 2.35; }
  .zm-studio-scene img { width: 100%; object-position: 50% 39%; mask-image: none; }
  .zm-studio-scene::after {
    background: linear-gradient(to bottom, var(--studio-paper), transparent 15%, transparent 78%, var(--studio-paper));
  }
}

@media (max-width: 599px) {
  .zm-studio-scene { aspect-ratio: 1.82; }
  .zm-studio-copy .zui-actions { gap: 2px 16px; }
  .zm-studio-copy .zui-link { gap: 6px; }
  .zm-studio-copy .zui-link svg { width: 18px; }
}

/* Photos meet the caption on desktop and sit above it on small screens. */
#routes .zm-pathway-panel {
  grid-template-rows: auto minmax(0, 1fr);
}
#routes .zm-pathway-media {
  display: flex;
  align-items: center;
  min-height: 0;
  max-height: none;
  height: clamp(190px, 18vw, 242px);
  background: linear-gradient(110deg, var(--brand-paper), var(--brand-sage));
}
#routes .zm-pathway-media::after { content: none; }
#routes .zm-pathway-media img {
  inset: 0 0 0 auto;
  width: 56%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  mask-image: linear-gradient(90deg, transparent, #000 18%);
  filter: none;
  transform: none;
}
#routes .zm-pathway-media > span {
  position: relative;
  inset: auto;
  width: 47%;
  max-width: 460px;
  padding-inline-start: clamp(18px, 2vw, 32px);
  color: var(--brand-ink);
  text-wrap: balance;
}
@media (max-width: 600px) {
  #routes .zm-pathway-media {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    background: var(--brand-paper);
  }
  #routes .zm-pathway-media img {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    mask-image: none;
  }
  #routes .zm-pathway-media > span {
    display: none;
  }
}

@media (max-width: 1180px) {
  #routes .zm-pathway-tabs {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  #routes .zm-pathway-tabs button {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
  }
  #routes .zm-pathway-tabs button > svg:first-child { width: 22px; height: 22px; }
  #routes .zm-pathway-tabs button > svg:last-child { display: none; }
}
@media (max-width: 760px) {
  #routes .zm-pathway-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #routes .zm-pathway-tabs button { min-height: 52px; padding: 8px 10px; }
  #routes .zm-pathway-tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--brand-rule); }
  #routes .zm-pathway-tabs button:nth-child(2n) { border-right: 0; }
}
@media (max-width: 370px) {
  #routes .zm-pathway-tabs button { grid-template-columns: 1fr; }
  #routes .zm-pathway-tabs button > svg:first-child { display: none; }
}
