.cm-page {
  --cm-ink: #273b45;
  --cm-muted: #65747a;
  --cm-line: rgba(39, 59, 69, .22);
  --application-section-mist: #f2f5f5;
  --cm-blue-grey: #dceaf0;
  overflow: hidden;
  color: var(--cm-ink);
  background: #fff;
}

.cm-page h1,
.cm-page h2,
.cm-page h3,
.cm-page p,
.cm-page figure { margin: 0; }
.cm-page h1,
.cm-page h2,
.cm-page h3 { color: var(--cm-ink); text-transform: none; }
.cm-page h1 > span,
.cm-page h2 > span { display: block; }
.cm-keep { display: inline-block; }

.cm-shell {
  width: min(var(--content), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.cm-kicker,
.cm-english-label,
.cm-project-type,
.cm-info-title,
.cm-chapter-mark {
}
.cm-kicker { margin-bottom: 27px !important; }
.cm-english-label { min-height: 30px; margin: 7px 0 8px !important; }
.cm-number { }
.cm-lead { color: var(--cm-muted); }
.cm-section-heading h2,
.cm-support h2 {
  margin-bottom: 19px;
  text-wrap: balance;
}

.cm-page .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
}
.cm-page .reveal.is-visible { opacity: 1; transform: none; }

.cm-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 5px 0 6px;
  border-bottom: 1px solid currentColor;
}
.cm-text-link > span { transition: transform 260ms ease; }
a.cm-text-link:hover > span,
a.cm-text-link:focus-visible > span { transform: translateX(3px); }
.cm-scroll-link:hover > span,
.cm-scroll-link:focus-visible > span { transform: translateY(3px); }
a.cm-text-link:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.cm-text-link-disabled { cursor: default; }

/* 01 · Commercial hero */
.cm-hero { padding: 0 0 20px; background: var(--application-section-mist); }
.cm-hero-layout {
  display: grid;
  height: clamp(560px, 74svh, 720px);
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
}
.cm-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px clamp(36px, 4.2vw, 68px) 56px 0;
}
.cm-hero h1 {
  margin-bottom: 21px;
  text-wrap: balance;
}
.cm-hero-copy .cm-lead { max-width: 440px; }
.cm-scroll-link { margin-top: 30px; }
.cm-hero-media {
  display: grid;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  grid-template-rows: minmax(0, 1fr) auto;
}
.cm-hero-media picture { display: block; min-height: 0; overflow: hidden; }
.cm-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}
.cm-hero-media figcaption {
  padding-top: 9px;
  text-align: right;
}
.cm-chapter-mark { margin-top: 3px; }

/* 02 · The challenge */
.cm-challenge { padding: 103px 0 93px; background: var(--application-section-mist); }
.cm-challenge .cm-section-heading { max-width: 860px; }
.cm-challenge .cm-section-heading .cm-lead { max-width: 790px; }
.cm-method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(25px, 3.4vw, 49px);
  margin-top: 63px;
}
.cm-method,
.cm-use { padding-top: 14px; border-top: 1px solid var(--cm-line); }
.cm-method h3,
.cm-use h3,
.cm-technology-points h3 {
  margin-bottom: 10px;
}
.cm-method > p:last-child,
.cm-use > p:last-child,
.cm-technology-points li > div > p:last-child {
  color: var(--cm-muted);
}

/* 03 · How AMINA works here */
.cm-technology { padding: 88px 0 84px; background: #fff; }
.cm-technology-layout {
  display: grid;
  grid-template-columns: minmax(280px, .96fr) minmax(300px, 1.02fr) minmax(310px, .88fr);
  gap: clamp(34px, 3.5vw, 54px);
  align-items: center;
}
.cm-technology .cm-section-heading .cm-lead { max-width: 420px; }
.cm-technology .cm-section-heading h2 { }
.cm-technology-visual { width: 100%; overflow: hidden; background: #17262d; }
.cm-technology-visual img { display: block; width: 100%; height: auto; }
.cm-technology-points { margin: 0; padding: 0; list-style: none; }
.cm-technology-points li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 15px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--cm-line);
}
.cm-technology-points li:first-child { padding-top: 0; border-top: 0; }
.cm-technology-points .cm-english-label { min-height: 0; margin: 0 0 5px !important; }

/* 04 · Where it applies */
.cm-where { padding: 80px 0 87px; background: var(--application-section-mist); }
.cm-where-layout {
  display: grid;
  grid-template-columns: minmax(0, 35%) minmax(0, 65%);
  gap: clamp(45px, 6vw, 88px);
  align-items: start;
}
.cm-use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 2.4vw, 35px);
}
.cm-use .cm-english-label { min-height: 44px; }

/* 05 · Real projects */
.cm-projects { padding: 88px 0 92px; background: #fff; }
.cm-projects-layout {
  display: grid;
  grid-template-columns: minmax(330px, 32%) minmax(0, 68%);
  gap: clamp(42px, 5vw, 75px);
  align-items: start;
}
.cm-projects .cm-section-heading { padding-top: 4px; }
.cm-projects .cm-section-heading h2 { }
.cm-projects .cm-section-heading .cm-lead { max-width: 390px; }
.cm-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(25px, 2.4vw, 36px);
}
.cm-project-image { display: block; overflow: hidden; background: #e5e6e4; }
.cm-project-image picture { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.cm-project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}
.cm-project:first-child .cm-project-image img { object-position: 50% 61%; }
.cm-project:nth-child(2) .cm-project-image img { object-position: 50% 48%; }
.cm-project:nth-child(3) .cm-project-image img { object-position: 50% 50%; }
a.cm-project-image:hover img { transform: scale(1.012); }
a.cm-project-image:focus-visible { outline: 2px solid var(--cm-ink); outline-offset: 4px; }
.cm-project-type { margin-top: 14px !important; margin-bottom: 5px !important; }
.cm-project h3 { margin-bottom: 8px; }
.cm-project > p:not(.cm-project-type) {
  min-height: 70px;
  color: var(--cm-muted);
}
.cm-project .cm-text-link { margin-top: 14px; }

/* 06 · Project support */
.cm-support { padding: 82px 0 77px; background: var(--cm-blue-grey); }
.cm-support-layout {
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  gap: clamp(66px, 8vw, 118px);
  align-items: start;
}
.cm-support-copy .cm-lead { max-width: 555px; }
.cm-support-copy .cm-text-link { margin-top: 30px; }
.cm-info-title { margin-bottom: 14px !important; }
.cm-project-information ol { margin: 0; padding: 0; list-style: none; }
.cm-project-information li {
  display: grid;
  grid-template-columns: 28px minmax(110px, .62fr) minmax(0, 1fr);
  gap: 17px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--cm-line);
}
.cm-project-information li strong { }
.cm-project-information li > span:last-child { color: var(--cm-muted); }
.cm-info-output {
  display: flex;
  gap: 19px;
  margin-top: 13px !important;
  padding-top: 14px;
  border-top: 1px solid var(--cm-line);
}

@media (max-width: 1180px) {
  .cm-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .cm-technology-layout { grid-template-columns: minmax(0, 46%) minmax(0, 54%); align-items: start; }
  .cm-technology-points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
  .cm-technology-points li,
  .cm-technology-points li:first-child { grid-template-columns: 1fr; padding-top: 15px; border-top: 1px solid var(--cm-line); }
  .cm-where-layout { grid-template-columns: minmax(0, 34%) minmax(0, 66%); gap: 44px; }
  .cm-use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 41px; }
  .cm-projects-layout { grid-template-columns: 1fr; }
  .cm-projects .cm-section-heading h2 { }
  .cm-projects .cm-section-heading { max-width: 720px; }
  .cm-projects .cm-section-heading .cm-lead { max-width: 650px; }
  .cm-project > p:not(.cm-project-type) { min-height: 92px; }
}

@media (max-width: 900px) {
  .cm-shell { width: min(100% - 64px, 820px); }
  .cm-hero-layout { grid-template-columns: minmax(0, 43%) minmax(0, 57%); }
  .cm-hero-copy { padding-right: 36px; }
  .cm-hero h1 { }
  .cm-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .cm-technology-layout { grid-template-columns: minmax(0, 43%) minmax(0, 57%); }
  .cm-technology-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cm-where-layout { grid-template-columns: 1fr; }
  .cm-where .cm-section-heading { max-width: 690px; }
  .cm-project-grid { gap: 22px; }
  .cm-project h3 { }
  .cm-support-layout { grid-template-columns: 1fr; gap: 63px; }
  .cm-project-information { max-width: 720px; }
}

@media (max-width: 700px) {
  .cm-shell { width: calc(100% - 48px); }
  .cm-kicker { margin-bottom: 22px !important; }
  .cm-section-heading h2,
  .cm-support h2 { margin-bottom: 17px; }
  .cm-technology .cm-section-heading h2,
  .cm-projects .cm-section-heading h2 { }
  .cm-lead { }

  .cm-hero { padding-top: 51px; }
  .cm-hero-layout { display: flex; height: auto; flex-direction: column; }
  .cm-hero-copy { padding: 0; }
  .cm-hero h1 { margin-bottom: 17px; }
  .cm-scroll-link { margin-top: 25px; }
  .cm-hero-media { margin-top: 38px; }
  .cm-hero-media picture { height: auto; aspect-ratio: 4 / 3; }
  .cm-hero-media img { object-position: 52% 50%; }
  .cm-hero-media figcaption { padding-top: 8px; text-align: left; }
  .cm-chapter-mark { margin-top: 38px; }

  .cm-challenge { padding: 73px 0 68px; }
  .cm-method-grid { grid-template-columns: 1fr; gap: 37px; margin-top: 51px; }
  .cm-method h3,
  .cm-use h3,
  .cm-technology-points h3 { }
  .cm-method > p:last-child,
  .cm-use > p:last-child,
  .cm-technology-points li > div > p:last-child { }

  .cm-technology { padding: 70px 0 69px; }
  .cm-technology-layout { display: block; }
  .cm-technology-visual { margin-top: 39px; }
  .cm-technology-points { display: block; margin-top: 50px; }
  .cm-technology-points li,
  .cm-technology-points li:first-child { grid-template-columns: 26px minmax(0, 1fr); gap: 15px; padding: 20px 0 23px; }
  .cm-technology-points li:first-child { border-top: 1px solid var(--cm-line); }

  .cm-where { padding: 69px 0 72px; }
  .cm-where-layout { gap: 49px; }
  .cm-use-grid { grid-template-columns: 1fr; gap: 36px; }
  .cm-use .cm-english-label { min-height: 0; }

  .cm-projects { padding: 72px 0 76px; }
  .cm-projects-layout { gap: 48px; }
  .cm-project-grid { grid-template-columns: 1fr; gap: 57px; }
  .cm-project h3 { }
  .cm-project > p:not(.cm-project-type) { min-height: 0; }
  .cm-project:first-child .cm-project-image img { object-position: 50% 65%; }

  .cm-support { padding: 69px 0 65px; }
  .cm-support-layout { gap: 56px; }
  .cm-project-information li {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 7px 14px;
    padding: 14px 0;
  }
  .cm-project-information li > span:last-child { grid-column: 2; }
  .cm-info-output { }
}

@media (prefers-reduced-motion: reduce) {
  .cm-page .reveal { opacity: 1; transform: none; }
  .cm-project-image img,
  .cm-text-link > span { transition: none; }
}
