.section.elemental-kin-product-gateway {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(76px, 7vw, 118px) 44px;
  background: var(--ek-colour-light);
  color: var(--ek-colour-primary);
}

.elemental-kin-product-gateway .container {
  position: relative;
  z-index: 2;
  width: min(88vw, 1680px);
  margin: 0 auto;
}

.elemental-kin-product-gateway__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(340px, 0.48fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: center;
}

.elemental-kin-product-gateway__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ek-colour-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.elemental-kin-product-gateway__eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.elemental-kin-product-gateway h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--ff-serif);
  font-size: clamp(2.85rem, 4.7vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.elemental-kin-product-gateway__lead {
  max-width: 640px;
  margin: 26px 0 0;
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  line-height: 1.62;
  font-weight: 800;
}

.elemental-kin-product-gateway__body {
  max-width: 620px;
  margin-top: 22px;
  opacity: 0.84;
  font-size: 1rem;
  line-height: 1.72;
}

.elemental-kin-product-gateway__body p {
  margin: 0 0 1em;
}

.elemental-kin-product-gateway__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.elemental-kin-product-gateway__feature {
  position: relative;
}

.elemental-kin-product-gateway__image {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 5 / 4;
  background: var(--ek-colour-warm);
}

.elemental-kin-product-gateway__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.elemental-kin-product-gateway__note {
  position: relative;
  z-index: 2;
  width: min(86%, 380px);
  margin: -52px 0 0 auto;
  padding: 28px;
  background: var(--ek-colour-secondary);
  color: var(--ek-colour-primary);
}

.elemental-kin-product-gateway__note h3 {
  margin: 0;
  font-family: var(--ff-serif);
  font-size: clamp(1.65rem, 2.3vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.elemental-kin-product-gateway__note p {
  margin: 14px 0 0;
  font-size: 0.96rem;
  line-height: 1.58;
  font-weight: 750;
}

.elemental-kin-product-gateway__note a {
  display: inline-flex;
  gap: 8px;
  margin-top: 18px;
  color: var(--ek-colour-accent);
  font-weight: 900;
  text-decoration: none;
}

/* Palette */
.elemental-kin-product-gateway--bg-primary { background: var(--ek-colour-primary); }
.elemental-kin-product-gateway--bg-secondary { background: var(--ek-colour-secondary); }
.elemental-kin-product-gateway--bg-accent { background: var(--ek-colour-accent); }
.elemental-kin-product-gateway--bg-light { background: var(--ek-colour-light); }
.elemental-kin-product-gateway--bg-soft { background: var(--ek-colour-soft); }
.elemental-kin-product-gateway--bg-warm { background: var(--ek-colour-warm); }
.elemental-kin-product-gateway--bg-button-one { background: var(--ek-colour-button-one); }
.elemental-kin-product-gateway--bg-button-two { background: var(--ek-colour-button-two); }

.elemental-kin-product-gateway--text-primary { color: var(--ek-colour-primary); }
.elemental-kin-product-gateway--text-light { color: var(--ek-colour-light); }

.elemental-kin-product-gateway--accent-primary .elemental-kin-product-gateway__eyebrow,
.elemental-kin-product-gateway--accent-primary .elemental-kin-product-gateway__note a { color: var(--ek-colour-primary); }
.elemental-kin-product-gateway--accent-secondary .elemental-kin-product-gateway__eyebrow,
.elemental-kin-product-gateway--accent-secondary .elemental-kin-product-gateway__note a { color: var(--ek-colour-secondary); }
.elemental-kin-product-gateway--accent-accent .elemental-kin-product-gateway__eyebrow,
.elemental-kin-product-gateway--accent-accent .elemental-kin-product-gateway__note a { color: var(--ek-colour-accent); }
.elemental-kin-product-gateway--accent-light .elemental-kin-product-gateway__eyebrow,
.elemental-kin-product-gateway--accent-light .elemental-kin-product-gateway__note a { color: var(--ek-colour-light); }
.elemental-kin-product-gateway--accent-soft .elemental-kin-product-gateway__eyebrow,
.elemental-kin-product-gateway--accent-soft .elemental-kin-product-gateway__note a { color: var(--ek-colour-soft); }
.elemental-kin-product-gateway--accent-warm .elemental-kin-product-gateway__eyebrow,
.elemental-kin-product-gateway--accent-warm .elemental-kin-product-gateway__note a { color: var(--ek-colour-warm); }
.elemental-kin-product-gateway--accent-button-one .elemental-kin-product-gateway__eyebrow,
.elemental-kin-product-gateway--accent-button-one .elemental-kin-product-gateway__note a { color: var(--ek-colour-button-one); }
.elemental-kin-product-gateway--accent-button-two .elemental-kin-product-gateway__eyebrow,
.elemental-kin-product-gateway--accent-button-two .elemental-kin-product-gateway__note a { color: var(--ek-colour-button-two); }

.elemental-kin-product-gateway--panel-primary .elemental-kin-product-gateway__note { background: var(--ek-colour-primary); color: var(--ek-colour-light); }
.elemental-kin-product-gateway--panel-secondary .elemental-kin-product-gateway__note { background: var(--ek-colour-secondary); color: var(--ek-colour-primary); }
.elemental-kin-product-gateway--panel-accent .elemental-kin-product-gateway__note { background: var(--ek-colour-accent); color: var(--ek-colour-light); }
.elemental-kin-product-gateway--panel-light .elemental-kin-product-gateway__note { background: var(--ek-colour-light); color: var(--ek-colour-primary); }
.elemental-kin-product-gateway--panel-soft .elemental-kin-product-gateway__note { background: var(--ek-colour-soft); color: var(--ek-colour-primary); }
.elemental-kin-product-gateway--panel-warm .elemental-kin-product-gateway__note { background: var(--ek-colour-warm); color: var(--ek-colour-primary); }

.elemental-kin-product-gateway--button-button-one .button--primary { background: var(--ek-colour-button-one) !important; color: var(--ek-colour-light) !important; }
.elemental-kin-product-gateway--button-button-two .button--primary { background: var(--ek-colour-button-two) !important; color: var(--ek-colour-light) !important; }
.elemental-kin-product-gateway--button-primary .button--primary { background: var(--ek-colour-primary) !important; color: var(--ek-colour-light) !important; }
.elemental-kin-product-gateway--button-accent .button--primary { background: var(--ek-colour-accent) !important; color: var(--ek-colour-light) !important; }

/* Decoration */
.section.elemental-kin-product-gateway::before {
  content: "";
  position: absolute;
  right: clamp(28px, 7vw, 140px);
  top: clamp(44px, 7vw, 104px);
  z-index: 1;
  width: clamp(300px, 28vw, 520px);
  height: clamp(300px, 28vw, 520px);
  opacity: 0.24;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ek-colour-accent) 0 48%, transparent 48% 100%) 0 12% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 0 18%, var(--ek-colour-accent) 18% 76%, transparent 76% 100%) 0 34% / 100% 2px no-repeat,
    linear-gradient(90deg, var(--ek-colour-accent) 0 36%, transparent 36% 100%) 0 58% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 0 38%, var(--ek-colour-accent) 38% 92%, transparent 92% 100%) 0 82% / 100% 2px no-repeat,
    linear-gradient(180deg, var(--ek-colour-accent) 0 44%, transparent 44% 100%) 16% 0 / 2px 100% no-repeat,
    linear-gradient(180deg, transparent 0 16%, var(--ek-colour-accent) 16% 78%, transparent 78% 100%) 50% 0 / 2px 100% no-repeat,
    linear-gradient(180deg, var(--ek-colour-accent) 0 66%, transparent 66% 100%) 82% 0 / 2px 100% no-repeat;
}

.elemental-kin-product-gateway--decoration-none::before,
.elemental-kin-product-gateway--decoration-image::before {
  display: none !important;
}

.elemental-kin-product-gateway--decoration-subtle::before { opacity: 0.16; }
.elemental-kin-product-gateway--decoration-normal::before { opacity: 0.28; }
.elemental-kin-product-gateway--decoration-strong::before { opacity: 0.42; }

.elemental-kin-product-gateway--decoration-position-left::before {
  left: clamp(28px, 7vw, 140px);
  right: auto;
}

.elemental-kin-product-gateway--decoration-position-centre::before {
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(-50%, -50%);
}

.elemental-kin-product-gateway__background-image {
  display: none;
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

.elemental-kin-product-gateway--decoration-image .elemental-kin-product-gateway__background-image {
  display: block;
  right: clamp(28px, 7vw, 140px);
  top: clamp(44px, 7vw, 104px);
  width: clamp(300px, 28vw, 520px);
  height: clamp(300px, 28vw, 520px);
}

@media (max-width: 900px) {
  .section.elemental-kin-product-gateway {
    padding: 64px 24px;
  }

  .elemental-kin-product-gateway__layout {
    grid-template-columns: 1fr;
  }
}

/* Product Gateway: second route motif for "Both sides" background decoration */
.section.elemental-kin-product-gateway::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: clamp(28px, 5vw, 96px);
  bottom: clamp(38px, 6vw, 96px);
  width: clamp(180px, 20vw, 360px);
  height: clamp(180px, 20vw, 360px);
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ek-colour-accent) 0 54%, transparent 54% 100%) 0 16% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 0 24%, var(--ek-colour-accent) 24% 82%, transparent 82% 100%) 0 44% / 100% 2px no-repeat,
    linear-gradient(90deg, var(--ek-colour-accent) 0 38%, transparent 38% 100%) 0 76% / 100% 2px no-repeat,
    linear-gradient(180deg, var(--ek-colour-accent) 0 58%, transparent 58% 100%) 20% 0 / 2px 100% no-repeat,
    linear-gradient(180deg, transparent 0 18%, var(--ek-colour-accent) 18% 86%, transparent 86% 100%) 58% 0 / 2px 100% no-repeat,
    linear-gradient(180deg, var(--ek-colour-accent) 0 46%, transparent 46% 100%) 84% 0 / 2px 100% no-repeat;
}

/* Show second motif only when the editor chooses Both sides */
.elemental-kin-product-gateway--decoration-position-both::after {
  display: block !important;
  visibility: visible !important;
}

/* Strength settings should apply to both motif layers */
.elemental-kin-product-gateway--decoration-subtle::after {
  opacity: 0.18 !important;
}

.elemental-kin-product-gateway--decoration-normal::after {
  opacity: 0.32 !important;
}

.elemental-kin-product-gateway--decoration-strong::after {
  opacity: 0.48 !important;
}

/* If set to right only, left only, centre, none or uploaded image, hide the second layer */
.elemental-kin-product-gateway--decoration-position-right::after,
.elemental-kin-product-gateway--decoration-position-left::after,
.elemental-kin-product-gateway--decoration-position-centre::after,
.elemental-kin-product-gateway--decoration-none::after,
.elemental-kin-product-gateway--decoration-image::after {
  display: none !important;
}

/* When both is selected, keep main motif on right and second motif on left */
.elemental-kin-product-gateway--decoration-position-both::before {
  left: auto !important;
  right: clamp(28px, 5vw, 96px) !important;
  top: clamp(38px, 6vw, 96px) !important;
  transform: none !important;
}

.elemental-kin-product-gateway--decoration-position-both::after {
  left: clamp(28px, 5vw, 96px) !important;
  right: auto !important;
  bottom: clamp(38px, 6vw, 96px) !important;
  top: auto !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .elemental-kin-product-gateway--decoration-position-both::after {
    left: -110px !important;
    bottom: 32px !important;
    width: 300px !important;
    height: 300px !important;
  }
}

/* Product Gateway: current Elemental Kin scheme alignment.
   No generic colour block. No legacy shop-packs wash.
*/

.section.elemental-kin-product-gateway {
  background: var(--ek-colour-light) !important;
  padding: clamp(86px, 8vw, 132px) 44px !important;
}

.elemental-kin-product-gateway__layout {
  grid-template-columns: minmax(0, 0.54fr) minmax(340px, 0.46fr) !important;
  gap: clamp(48px, 7vw, 110px) !important;
  align-items: center !important;
}

.elemental-kin-product-gateway__note {
  width: min(100%, 430px) !important;
  margin: 0 0 0 auto !important;
  padding: clamp(30px, 3.8vw, 46px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--ek-colour-light) !important;
  box-shadow: none !important;
  color: var(--ek-colour-primary) !important;
}

.elemental-kin-product-gateway__note::before {
  display: none !important;
}

.elemental-kin-product-gateway__note h3 {
  max-width: 390px !important;
  font-size: clamp(2rem, 2.8vw, 3.1rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em !important;
}

.elemental-kin-product-gateway__note p {
  color: var(--ek-colour-primary) !important;
  font-size: 0.98rem !important;
  line-height: 1.6 !important;
  font-weight: 750 !important;
}

.elemental-kin-product-gateway__note a {
  color: var(--ek-colour-accent) !important;
  font-weight: 900 !important;
}

/* Keep the motif present but quieter and aligned to the current site language */
.section.elemental-kin-product-gateway::before {
  right: clamp(48px, 7vw, 140px) !important;
  top: clamp(64px, 8vw, 122px) !important;
  width: clamp(260px, 24vw, 420px) !important;
  height: clamp(260px, 24vw, 420px) !important;
}

.section.elemental-kin-product-gateway::after {
  display: none !important;
}

.elemental-kin-product-gateway--decoration-position-both::after {
  display: block !important;
  left: clamp(40px, 6vw, 110px) !important;
  bottom: clamp(54px, 7vw, 120px) !important;
  width: clamp(160px, 16vw, 280px) !important;
  height: clamp(160px, 16vw, 280px) !important;
}

.elemental-kin-product-gateway--decoration-subtle::before,
.elemental-kin-product-gateway--decoration-subtle::after {
  opacity: 0.11 !important;
}

.elemental-kin-product-gateway--decoration-normal::before,
.elemental-kin-product-gateway--decoration-normal::after {
  opacity: 0.18 !important;
}

.elemental-kin-product-gateway--decoration-strong::before,
.elemental-kin-product-gateway--decoration-strong::after {
  opacity: 0.26 !important;
}

@media (max-width: 900px) {
  .section.elemental-kin-product-gateway {
    padding: 68px 24px !important;
  }

  .elemental-kin-product-gateway__layout {
    grid-template-columns: 1fr !important;
  }

  .elemental-kin-product-gateway__note {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/* Messy Middle design system: toolkit pull-card treatment */
.elemental-kin-product-gateway__aside,
.elemental-kin-product-gateway__panel,
.elemental-kin-product-gateway__card,
.elemental-kin-product-gateway__summary {
  background: var(--ek-colour-soft, #f8f3eb);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(1.6rem, 3vw, 2.5rem);
}

.elemental-kin-product-gateway__aside h3,
.elemental-kin-product-gateway__panel h3,
.elemental-kin-product-gateway__card h3,
.elemental-kin-product-gateway__summary h3 {
  max-width: 16ch;
  font-family: var(--mm-serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  color: var(--ek-colour-primary, #172239);
}

/* Messy Middle refinement: toolkit gateway balance */
@media (min-width: 901px) {
  .elemental-kin-product-gateway__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.5fr);
    column-gap: clamp(56px, 7vw, 130px);
    align-items: center;
  }

  .elemental-kin-product-gateway__copy {
    max-width: 820px;
    margin-left: 0;
  }

  .elemental-kin-product-gateway__copy h2 {
    max-width: 780px;
  }

  .elemental-kin-product-gateway__lead,
  .elemental-kin-product-gateway__body {
    max-width: 620px;
  }

  .elemental-kin-product-gateway__feature {
    justify-self: start;
  }

  .elemental-kin-product-gateway__note {
    width: fit-content;
    max-width: 350px;
    padding: clamp(26px, 2.7vw, 40px);
  }

  .elemental-kin-product-gateway__note h3 {
    max-width: 285px;
  }

  .elemental-kin-product-gateway__note p {
    max-width: 285px;
  }
}

/* Messy Middle refinement: toolkit image overlap layout */
@media (min-width: 901px) {
  .elemental-kin-product-gateway {
    padding-block: clamp(96px, 10vw, 150px) clamp(130px, 12vw, 190px);
  }

  .elemental-kin-product-gateway__layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(480px, 0.92fr);
    column-gap: clamp(72px, 8vw, 150px);
    align-items: center;
  }

  .elemental-kin-product-gateway__copy {
    max-width: 720px;
    margin-left: 0;
    align-self: center;
  }

  .elemental-kin-product-gateway__copy h2 {
    max-width: 700px;
  }

  .elemental-kin-product-gateway__lead,
  .elemental-kin-product-gateway__body {
    max-width: 560px;
  }

  .elemental-kin-product-gateway__feature {
    position: relative;
    justify-self: stretch;
    align-self: center;
    min-height: clamp(440px, 38vw, 610px);
    padding-bottom: clamp(90px, 8vw, 135px);
  }

  .elemental-kin-product-gateway__image {
    display: block;
    width: min(100%, 720px);
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
  }

  .elemental-kin-product-gateway__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .elemental-kin-product-gateway__note {
    position: absolute;
    right: clamp(28px, 5vw, 90px);
    bottom: 0;
    z-index: 2;
    width: min(340px, 72%);
    max-width: 340px;
    padding: clamp(30px, 3vw, 44px);
    background: #fffdfa;
  }

  .elemental-kin-product-gateway__note h3,
  .elemental-kin-product-gateway__note p {
    max-width: 280px;
  }
}

@media (max-width: 900px) {
  .elemental-kin-product-gateway__feature {
    position: relative;
  }

  .elemental-kin-product-gateway__image {
    margin-bottom: 0;
  }

  .elemental-kin-product-gateway__note {
    margin-top: -32px;
    margin-inline: auto 0;
    position: relative;
    z-index: 2;
  }
}
