.mozo-marketing .ei-page.m-container {
  --ei-ink: var(--mozo-wordmark-ink);
  --ei-copy: #555550;
  --ei-rule: #d8d7d2;
  --ei-preview-surface: #ebe4da;
  width: min(1120px, calc(100% - 72px));
  color: var(--ei-ink);
}

.ei-page :is(h1, h2, h3, h4, p, figure) { margin: 0; }
.ei-page [id] { scroll-margin-top: 105px; }

.mozo-marketing .ei-page :is(h1, h2, h3) {
  color: var(--ei-ink);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.043em;
  text-wrap: balance;
}

.mozo-marketing .ei-page h1 { font-size: clamp(44px, 6.3vw, 82px); }
.mozo-marketing .ei-page h2 { font-size: clamp(29px, 3.7vw, 42px); }
.mozo-marketing .ei-page h3 { font-size: clamp(25px, 3vw, 39px); }

.ei-page p {
  color: var(--ei-copy);
  font-size: 16px;
  line-height: 1.75;
}

.ei-masthead {
  max-width: 650px;
  margin-inline: auto;
  padding-block: clamp(44px, 7vw, 91px) clamp(44px, 7vw, 84px);
  text-align: center;
}

.ei-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  margin-top: 24px;
}

.mozo-marketing .ei-page .ei-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ei-ink);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--ei-rule);
  text-underline-offset: .3em;
}

.mozo-marketing .ei-page .ei-text-link:hover { text-decoration-color: currentColor; }
.ei-text-link:focus-visible { outline: 2px solid var(--ei-ink); outline-offset: 4px; }

.ei-community { margin-bottom: clamp(48px, 8vw, 100px); }
.ei-community-heading,
.ei-curation-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding-top: 19px;
  margin-bottom: 22px;
  border-top: 1px solid var(--ei-rule);
}

.ei-curation-index nav { display: flex; flex-wrap: wrap; gap: 3px 20px; color: var(--ei-copy); font-size: 14px; }
.ei-curation-index nav a { display: inline-flex; min-height: 44px; align-items: center; }
.ei-curation-index nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.ei-page .community-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px 18px;
}

.mozo-marketing .ei-page .community-case-grid > a {
  align-content: start;
  min-width: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.ei-image-frame {
  overflow: hidden;
  border-radius: 10px;
  background: var(--ei-preview-surface);
}

.ei-page .ei-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.ei-community-work .ei-image-frame { aspect-ratio: 4 / 3; }

.ei-page .community-case-grid .ei-community-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 0 0;
  color: var(--ei-ink);
  overflow-wrap: anywhere;
}

.ei-page .ei-community-meta strong { font-size: 15px; }
.ei-page .ei-community-meta span { color: var(--ei-copy); white-space: nowrap; }
.ei-community-work:hover .ei-community-meta span,
.ei-community-work:focus-visible .ei-community-meta span { text-decoration: underline; text-underline-offset: .3em; }

.ei-featured-work,
.ei-file-work {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-rows: 1fr 1fr;
  column-gap: clamp(26px, 5vw, 64px);
}

.ei-featured-copy,
.ei-file-copy {
  grid-area: 1 / 1;
  align-self: end;
}

.ei-featured-copy p,
.ei-section-intro p { max-width: 28em; margin-top: 13px; }

.ei-featured-link,
.ei-file-link {
  grid-area: 2 / 1;
  align-self: start;
  justify-self: start;
  min-height: 44px;
  margin-top: 12px;
}

.ei-featured-work > figure,
.ei-file-preview {
  grid-area: 1 / 2 / span 2;
  display: grid;
  align-content: center;
  gap: 9px;
  min-width: 0;
}

.ei-file-preview {
  padding: clamp(20px, 4vw, 52px);
  border-radius: 12px;
  background: var(--ei-preview-surface);
}

.ei-featured-work .ei-image-frame { aspect-ratio: 1.48; }
.ei-page figcaption { color: var(--ei-copy); font-size: 13px; line-height: 1.5; }

.ei-space,
.ei-file-work { margin-top: clamp(48px, 8vw, 92px); }

.ei-space {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  column-gap: clamp(26px, 5vw, 64px);
}

.ei-space .ei-section-intro { grid-area: 1 / 2; align-self: end; }
.ei-space figure { grid-area: 1 / 1 / span 2; }
.ei-space .ei-image-frame { aspect-ratio: 16 / 10; margin-bottom: 8px; }
.ei-space-link { grid-area: 2 / 2; align-self: start; justify-self: start; min-height: 44px; margin-top: 12px; }

.ei-study-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.mozo-marketing .ei-page .ei-study-controls button {
  min-height: 44px;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ei-copy);
  font-size: 14px;
  cursor: pointer;
}

.mozo-marketing .ei-page .ei-study-controls button:is([aria-pressed=true], :hover, :active) {
  background: #e4e4e0;
  color: var(--ei-ink);
}

.ei-study-controls button:focus-visible { outline: 2px solid var(--ei-ink); outline-offset: 3px; }

.ei-file-sheet {
  display: grid;
  gap: 11px;
  padding: clamp(16px, 3vw, 25px);
  background: #fffdf9;
}

.ei-file-sheet h4 { color: var(--ei-ink); font-size: clamp(18px, 2.1vw, 25px); font-weight: 500; line-height: 1.38; }
.ei-file-sheet dl { margin: 0; color: var(--ei-copy); font-size: 14px; line-height: 1.65; }

.ei-file-sheet dl > div {
  display: grid;
  grid-template-columns: 4em minmax(0, 1fr);
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid var(--ei-rule);
}

.ei-file-sheet dt { color: var(--ei-ink); font-weight: 650; }
.ei-file-sheet dd { margin: 0; }

.ei-page .case-submit-band {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 20px clamp(24px, 5vw, 64px);
  padding-block: clamp(30px, 5vw, 62px);
  border-top: 1px solid var(--ei-rule);
}

.mozo-marketing .ei-page :is(.case-submit-heading, .case-history-heading) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.mozo-marketing .ei-page .case-history-heading { margin-bottom: 18px; }
.mozo-marketing .ei-page .case-submit-heading > p { max-width: 25em; color: var(--ei-copy); font-size: 15px; }

.mozo-marketing .ei-page :is(.case-submit-form, .case-login-prompt) {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.mozo-marketing .ei-page .case-submit-form { overflow: visible; }

.mozo-marketing .ei-page .case-submit-messages {
  margin: 0 0 14px;
}

.mozo-marketing .ei-page .case-submit-fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  background: none;
}

.mozo-marketing .ei-page .case-submit-field {
  min-height: 0;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.mozo-marketing .ei-page .case-submit-field strong { color: var(--ei-ink); font-size: 17px; }
.mozo-marketing .ei-page .case-submit-field small { color: var(--ei-copy); font-size: 13px; }
.mozo-marketing .ei-page .case-submit-field input {
  margin-top: 3px;
  border: 1px solid var(--ei-rule);
  border-radius: 8px;
  background: #fcfcfa;
  font-size: 14px;
}

.mozo-marketing .ei-page .case-submit-footer { min-height: 0; margin-top: 24px; padding: 0; }

.mozo-marketing .ei-page .case-submit-footer p { color: var(--ei-copy); font-size: 13px; }

.mozo-marketing .ei-page .case-login-prompt {
  display: flex;
  align-items: start;
  justify-content: start;
  align-self: start;
  min-height: 0;
}

.mozo-marketing .ei-page .case-submission-row { padding-inline: 0; border: 0; border-top: 1px solid var(--ei-rule); background: none; box-shadow: none; }
.ei-page .case-submission-note { font-size: 14px; overflow-wrap: anywhere; }
.mozo-marketing .ei-page .case-history-empty { border: 0; background: none; padding-inline: 0; }

@media (max-width: 720px) {
  .mozo-marketing .ei-page.m-container { width: calc(100% - 36px); }

  .ei-page .community-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ei-page :is(.ei-featured-work, .ei-file-work, .case-submit-band) { grid-template-columns: minmax(0, 1fr); }
  .ei-featured-work, .ei-file-work { grid-template-rows: auto; row-gap: 13px; }
  .ei-space { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 13px; }
  .ei-space :is(.ei-section-intro, figure, .ei-space-link) { grid-area: auto; }
  .ei-space-link { margin-top: 0; }

  .ei-featured-work > figure,
  .ei-file-preview,
  .ei-featured-copy,
  .ei-file-copy,
  .ei-featured-link,
  .ei-file-link { grid-area: auto; }

  .ei-featured-link, .ei-file-link { margin-block: 7px 10px; }
}

@media (max-width: 510px) {
  .ei-page .community-case-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .ei-image-frame img { transition: transform 280ms ease; }
  .ei-image-frame:active img { transform: scale(1.045); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ei-image-frame:hover img { transform: scale(1.045); }
}
