.ex-page {
  --ex-space: clamp(52px, 7vw, 110px);
}

.ex-hero {
  position: relative;
  display: grid;
  min-height: clamp(540px, 77svh, 780px);
  align-items: center;
  isolation: isolate;
  color: #fff;
  background: var(--dark);
}
.ex-hero-copy {
  z-index: 1;
  width: min(65%, 1020px);
  padding: clamp(50px, 6vw, 105px) 0 clamp(50px, 6vw, 105px) var(--gutter);
}
.ex-hero .ct-kicker { color: var(--mint); }
.ex-hero h1 { font-size: clamp(48px, 7.2vw, 120px); max-width: 12.5ch; }
.ex-hero-remate {
  max-width: 24ch;
  margin-top: 22px;
  color: var(--mint);
  font: italic 400 clamp(26px, 3.5vw, 53px)/1.04 Georgia, 'Times New Roman', serif;
  letter-spacing: -.045em;
}
.ex-hero .ct-button { margin-top: 27px; }
.ex-hero-media { position: absolute; inset: 0 0 0 25%; overflow: hidden; }
.ex-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.ex-hero-media::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, #062a44 0%, #062a44f5 16%, #062a4494 41%, #062a4414 76%);
}
.ex-hero :focus-visible, .ex-feature :focus-visible, .ex-close :focus-visible { outline-color: var(--mint); }

.ex-index {
  padding: var(--ex-space) var(--gutter) clamp(30px, 4vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px clamp(25px, 6vw, 95px);
  align-items: end;
}
.ex-index h2 { max-width: 16ch; }
.ex-index > p, .ex-sector-copy > p, .ex-close p {
  max-width: 51ch;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
}
.ex-index nav { grid-column: 1 / -1; }
.ex-index ul, .ex-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ex-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color .22s, background .22s, border-color .22s;
}
.ex-index a:hover { border-color: var(--dark); background: var(--dark); color: #fff; }

.ex-sector { min-width: 0; }
.ex-sector h3 {
  font-size: clamp(34px, 4.3vw, 72px);
  line-height: 1;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.ex-sector-copy > p { margin-top: 17px; }
.ex-services { margin-top: 20px; }
.ex-services li {
  padding: 6px 10px;
  border: 1px solid #a9bec6;
  border-radius: 30px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}
.ex-sector-copy > .ex-reference {
  padding-left: 12px;
  border-left: 2px solid #6499a8;
  font-size: 15px;
}
.ex-media {
  overflow: hidden;
  border-radius: 5px 46px 5px 5px;
  background: #d3e0e2;
}
.ex-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .58s var(--ease);
}
@media (hover: hover) {
  .ex-media:hover img { transform: scale(1.035); }
}
.ex-split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(25px, 6vw, 100px);
  align-items: center;
  padding: clamp(26px, 3vw, 45px) var(--gutter) var(--ex-space);
}
.ex-split .ex-media { aspect-ratio: 1.5; }
.ex-split-reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  padding-block: var(--ex-space);
  background: #e7efec;
}
.ex-split-reverse .ex-media { order: -1; border-radius: 42px 5px 5px 5px; }

.ex-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(26px, 6vw, 95px);
  padding: var(--ex-space) var(--gutter);
  background: #eef4f5;
}
.ex-mosaic-main, .ex-mosaic-side { display: flex; flex-direction: column; gap: 23px; }
.ex-mosaic-main .ex-media { order: -1; aspect-ratio: 1.52; }
.ex-mosaic-side { align-self: end; }
.ex-mosaic-side .ex-media { aspect-ratio: 1.63; border-radius: 5px 5px 36px 5px; }
.ex-mosaic h3 { font-size: clamp(33px, 3.7vw, 57px); }

.ex-feature {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(490px, 53vw, 720px);
  isolation: isolate;
  background: var(--dark);
  color: #fff;
}
.ex-feature .ex-media { position: absolute; inset: 0; z-index: -1; border-radius: 0; }
.ex-feature .ex-media img { object-position: center 22%; }
.ex-feature::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  pointer-events: none;
  background: linear-gradient(90deg, #061e31df, #061e3144 55%, transparent), linear-gradient(0deg, #061e31 0%, #061e31e8 13%, transparent 70%);
}
.ex-feature .ex-sector-copy { padding: var(--ex-space) var(--gutter) clamp(33px, 5vw, 74px); }
.ex-feature .ex-sector-copy > p { color: #edf5fa; }
.ex-feature .ex-services li { border-color: #a9bec6; background: #062a4499; }
.ex-feature .ex-reference { border-color: var(--mint); }

.ex-product {
  padding: var(--ex-space) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 0;
}
.ex-product .ex-media { grid-area: 1 / 1 / 2 / -1; height: clamp(365px, 43vw, 620px); }
.ex-product .ex-media img { object-position: center 23%; }
.ex-product .ex-sector-copy {
  z-index: 1;
  grid-area: 1 / 1 / 2 / 2;
  margin: 0 0 0 -1px;
  padding: clamp(23px, 3vw, 42px);
  background: var(--paper);
  border-radius: 0 36px 0 0;
}
.ex-product h3 { font-size: clamp(32px, 3.75vw, 59px); }
.ex-food { background: #f1ece1; padding-block: var(--ex-space); }
.ex-food .ex-media { aspect-ratio: 1.68; }

.ex-close {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .65fr);
  gap: clamp(26px, 6vw, 96px);
  align-items: center;
  padding: var(--ex-space) var(--gutter);
  background: var(--dark);
  color: #fff;
}
.ex-close h2 { font-size: clamp(39px, 5.2vw, 82px); max-width: 17ch; }
.ex-close h2 em { color: var(--mint); }
.ex-close p { margin-top: 20px; color: #e3eff3; }
.ex-close-links { display: grid; align-items: start; justify-items: start; }
.ex-close-links .ct-button { margin-bottom: 13px; }
.ex-close-links a:not(.ct-button) {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  align-items: center;
  border-bottom: 1px solid #d5ecf46b;
  text-decoration: none;
  font-weight: 700;
}
.ex-close-links a:not(.ct-button):hover { color: var(--mint); }

.ex-enter { animation: ex-reveal .65s var(--ease) both; }
@keyframes ex-reveal {
  from { opacity: .72; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 850px) {
  .ex-hero { min-height: 0; }
  .ex-hero-copy { width: auto; padding: 48px var(--gutter) 34px; }
  .ex-hero h1 { font-size: clamp(43px, 8.8vw, 72px); }
  .ex-hero-media { position: relative; inset: auto; height: clamp(255px, 52vw, 445px); }
  .ex-hero-media::after { background: linear-gradient(180deg, #062a4473, transparent 30%); }
  .ex-index, .ex-split, .ex-mosaic, .ex-close { grid-template-columns: minmax(0, 1fr); }
  .ex-split-reverse .ex-media { order: 0; }
  .ex-mosaic-main .ex-media { order: 0; }
  .ex-feature { min-height: 0; }
  .ex-feature .ex-media { position: relative; inset: auto; aspect-ratio: 1.65; grid-row: 1; }
  .ex-feature .ex-sector-copy { padding-top: 32px; }
  .ex-feature::after { display: none; }
  .ex-product { display: flex; flex-direction: column; gap: 22px; align-items: stretch; }
  .ex-product .ex-media { height: auto; aspect-ratio: 1.52; order: -1; }
  .ex-product .ex-sector-copy { padding: 0; margin: 0; border-radius: 0; }
  .ex-close-links { max-width: 420px; }
}
@media (max-width: 400px) {
  .ex-index a { padding-inline: 11px; font-size: 13px; }
  .ex-sector h3 { font-size: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-enter { animation: none; }
  .ex-index a, .ex-media img { transition: none; }
  .ex-media:hover img { transform: none; }
}
