/* KiwiTile services carousel section — extracted from large.css */

@media (min-width: 1025px) {
  .services-primary .kt-services-opening .services-heading-title {
    position: relative;
    z-index: 3;
    display: block;
    margin: 0 auto;
    max-width: none;
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-wrap: balance;
  }
  .services-primary .kt-services-opening .services-heading-title-ivory {
    font-size: clamp(48px, 4.4vw, 76px);
    color: rgba(244, 238, 228, 0.96);
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.52),
      0 10px 34px rgba(0, 0, 0, 0.46);
  }
  .services-primary .kt-services-opening .services-heading-title-gold {
    margin-top: clamp(4px, 0.5vw, 8px);
    font-size: clamp(52px, 4.8vw, 84px);
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(
      92deg,
      #9d6331 0%,
      #e0ad66 34%,
      #f3d097 54%,
      #8b5226 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  }
  .services-primary .kt-services-opening .services-heading-title::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 128%;
    height: 108%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(190, 145, 92, 0.05) 38%,
      transparent 76%
    );
  }
  .services-primary .kt-services-opening .services-heading-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: min(240px, 72%);
    height: clamp(3px, 0.35vw, 4px);
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      rgba(139, 82, 38, 0.55) 0%,
      rgba(243, 208, 151, 0.92) 50%,
      rgba(139, 82, 38, 0.55) 100%
    );
    box-shadow:
      0 0 16px rgba(193, 132, 69, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  .services-primary .kt-services-opening .services-heading-sub {
    position: relative;
    z-index: 3;
    margin: clamp(18px, 2vw, 26px) auto 0;
    max-width: none;
    white-space: nowrap;
    font-family: var(--font-serif);
    font-size: clamp(15px, 1.15vw, 18px);
    font-weight: 500;
    line-height: 1.42;
    letter-spacing: 0.06em;
    color: var(--kt-charcoal-plark-text-soft);
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.04),
      0 12px 36px rgba(0, 0, 0, 0.44);
  }
  .kt-services-opening {
    width: var(--svc-primary-rail);
    max-width: none;
    margin-inline: auto;
    margin-block: 0;
    box-shadow: none;
    align-items: center;
  }
  .kt-services-opening > header.services-heading-card {
    width: var(--svc-primary-rail);
    max-width: none;
    margin-block: 0;
    margin-inline: auto;
    padding: 0;
    overflow: visible;
    background: url("../images/004-dt-services-card-inner-bg.webp") center / cover
      no-repeat;
    border: 1px solid rgba(224, 163, 83, 0.92);
    border-radius: 8px;
    box-shadow:
      0 32px 90px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  .kt-services-opening .service-card {
    margin-block: 0;
    margin-inline: auto;
  }
}
.kt-evidence-verdict {
  position: relative;
  width: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  margin: 0;
  padding: clamp(54px, 6.2vw, 92px) clamp(24px, 5vw, 72px)
    clamp(82px, 8.2vw, 124px);
  overflow: hidden;
  isolation: isolate;
  color: var(--cream-strong);
  font-family: var(--font-sans);
  text-align: center;
  background: transparent;
}

.kt-evidence-verdict::before {
  content: "";
  position: absolute;
  inset: clamp(10px, 1vw, 16px) 0 auto;
  height: 1px;
  width: min(980px, 78vw);
  margin-inline: auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(var(--rgb-gold-heading) / 0.14) 18%,
    rgb(var(--rgb-gold-bright) / 0.42) 50%,
    rgb(var(--rgb-gold-heading) / 0.14) 82%,
    transparent
  );
  box-shadow: 0 0 28px rgb(var(--rgb-gold-ui) / 0.16);
  pointer-events: none;
}

.kt-evidence-verdict::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 52% 32% at 50% 30%,
      rgb(var(--rgb-gold-ui) / 0.105),
      transparent 68%
    ),
    radial-gradient(
      ellipse 70% 46% at 50% 78%,
      rgb(0 0 0 / 0.36),
      transparent 72%
    );
}

.kt-evidence-verdict__inner {
  position: relative;
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-block: clamp(10px, 1.2vw, 18px);
}

.kt-evidence-verdict__inner::before,
.kt-evidence-verdict__inner::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.kt-evidence-verdict__inner::before {
  inset-block-start: 50%;
  width: min(760px, 70vw);
  height: clamp(150px, 14vw, 230px);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgb(255 241 198 / 0.075),
    rgb(var(--rgb-gold-ui) / 0.035) 38%,
    transparent 72%
  );
  filter: blur(10px);
  opacity: 0.82;
}

.kt-evidence-verdict__inner::after {
  inset-block-end: clamp(-28px, -2.2vw, -18px);
  width: min(520px, 58vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 247 232 / 0.34),
    rgb(var(--rgb-gold-bright) / 0.42),
    rgb(255 247 232 / 0.34),
    transparent
  );
  box-shadow: 0 0 18px rgb(var(--rgb-gold-ui) / 0.18);
}

.kt-evidence-verdict__eyebrow {
  margin: clamp(14px, 1.5vw, 22px) 0 clamp(34px, 3.4vw, 54px);
  color: rgb(var(--rgb-gold-highlight) / 0.9);
  font-size: clamp(9px, 0.62vw, 11px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: var(--shadow-kicker);
}

.kt-evidence-verdict__title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1080px, 100%);
  margin-inline: auto;
  color: rgb(var(--rgb-cream-strong) / 0.94);
  font-family: var(--font-serif);
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgb(255 255 255 / 0.06),
    0 18px 48px rgba(0, 0, 0, 0.58);
}

.kt-evidence-verdict__title span {
  display: block;
}

.kt-evidence-verdict__subject {
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.04;
  letter-spacing: 0.055em;
  color: rgb(var(--rgb-cream-strong) / 0.9);
}

.kt-evidence-verdict__finding {
  max-width: 29ch;
  margin: clamp(12px, 1.25vw, 18px) auto 0;
  color: transparent;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.45vw, 56px);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: 0.018em;
  text-wrap: balance;
  background: linear-gradient(
    96deg,
    rgb(var(--rgb-gold-sheen) / 0.96) 0%,
    rgb(var(--rgb-gold-highlight) / 0.98) 36%,
    rgb(var(--rgb-gold-bright) / 1) 54%,
    rgb(var(--rgb-gold-muted) / 0.94) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 16px 34px rgb(0 0 0 / 0.5));
}

.kt-evidence-verdict__rule {
  display: block;
  position: relative;
  width: min(620px, 62vw);
  height: 1px;
  margin: clamp(22px, 2.25vw, 34px) auto clamp(20px, 2vw, 30px);
  background: linear-gradient(
    90deg,
    transparent,
    rgb(var(--rgb-gold-heading) / 0.2) 14%,
    rgb(var(--rgb-gold-bright) / 0.68) 50%,
    rgb(var(--rgb-gold-heading) / 0.2) 86%,
    transparent
  );
  box-shadow: 0 0 24px rgb(var(--rgb-gold-ui) / 0.2);
}

.kt-evidence-verdict__rule::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgb(var(--rgb-gold-bright) / 0.88);
  box-shadow:
    0 0 0 5px rgb(0 0 0 / 0.28),
    0 0 18px rgb(var(--rgb-gold-ui) / 0.42);
}

.kt-evidence-verdict__final {
  margin-top: 0;
  font-size: clamp(18px, 1.75vw, 28px);
  font-weight: 625;
  line-height: 1.04;
  letter-spacing: 0.06em;
  color: rgb(var(--rgb-cream-strong) / 0.9);
}

.kt-evidence-verdict__final + .kt-evidence-verdict__final {
  margin-top: clamp(5px, 0.5vw, 9px);
}

.kt-evidence-verdict__final-accent em {
  font-style: normal;
  font-weight: 760;
  color: transparent;
  background: linear-gradient(
    94deg,
    rgb(var(--rgb-gold-highlight) / 0.98) 0%,
    rgb(var(--rgb-gold-bright) / 0.98) 58%,
    rgb(var(--rgb-gold-muted) / 0.94) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.kt-evidence-verdict__micro {
  margin: clamp(40px, 4vw, 64px) 0 0;
  color: rgb(var(--rgb-cream-strong) / 0.68);
  font-family: var(--font-serif);
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

@media (max-width: 600px) {
  .kt-evidence-verdict__subject {
    font-size: 24px;
  }

  .kt-evidence-verdict__finding {
    font-size: 36px;
  }

  .kt-evidence-verdict__final {
    font-size: 22px;
  }
}

#services-start {
  display: block;
  height: clamp(28px, 4vw, 58px);
  margin-top: 0;
  top: 0;
  pointer-events: none;
}

#services {
  position: relative;
  --svc-stack-gap: clamp(28px, 3.4vw, 40px);
}

.services-primary {
  --svc-side-gutter: 20px;
  --svc-primary-rail: 80vw;
  --svc-text-pad-top: clamp(8px, 1vw, 14px);
  --svc-text-pad-bottom: clamp(10px, 1.4vw, 16px);
  --svc-text-pad-inline: clamp(16px, 2.6vw, 28px);
  --svc-text-gap: clamp(6px, 0.6vw, 8px);
  --svc-divider-h: clamp(14px, 1.15vw, 20px);
  --svc-divider-w: clamp(220px, 24vw, 360px);
  --svc-inset: clamp(8px, 1vw, 12px);
  --svc-parallax-bleed: clamp(90px, 12vw, 140px);
  --svc-media-ratio: 1180 / 462;
  --svc-primary-card-width: var(--svc-primary-rail);
  --svc-primary-media-ratio: var(--svc-media-ratio);
  --svc-primary-copy-size: clamp(15.5px, 1.65vw, 20px);
  --svc-primary-secondary-size: clamp(14.5px, 1.5vw, 18px);
  --svc-primary-copy-line-height: 1.44;
  --svc-primary-secondary-line-height: 1.42;
  --svc-primary-secondary-white-space: nowrap;
  --svc-primary-cta-size: clamp(13px, 1.05vw, 15px);
  --svc-primary-material-display: inline;
}

.services-primary .kt-services-opening {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--svc-stack-gap);
}


.services-primary .kt-services-opening > .service-card,
.services-primary .kt-services-opening > header.services-heading-card {
  margin-block: 0;
  margin-inline: auto;
}

.services-primary .kt-services-opening > header.services-heading-card {
  width: var(--svc-card-width, var(--svc-primary-rail));
  max-width: none;
  overflow: visible;
}

.services-primary .service-card,
.services-primary .services-heading-card {
  position: relative;
  width: var(--svc-card-width, var(--svc-primary-rail));
  max-width: none;
  margin-inline: auto;
  margin-block: 0;
  --svc-radius: 8px;
  --svc-media-radius: 8px;
  background: url("../images/004-dt-services-card-inner-bg.webp") center / cover
    no-repeat;
  border: 1px solid rgba(224, 163, 83, 0.92);
  border-radius: var(--svc-radius);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.services-primary .service-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
}

.services-primary .service-card--primary {
  --svc-card-width: var(--svc-primary-card-width);
  --svc-card-media-ratio: var(--svc-primary-media-ratio);
  --svc-material-display: var(--svc-primary-material-display);
}

/* Tablet portrait: full-bleed service rail and images. */
@media (min-width: 700px) and (max-width: 1100px) and (orientation: portrait) {
  .services-primary {
    --svc-primary-rail: 100vw;
    --svc-primary-card-width: 100vw;
    --svc-inset: 0px;
  }

  .services-primary .service-card--primary {
    width: 100vw !important;
  }

  .services-primary .service-system-row,
  .services-primary .kt-services-closing {
    width: calc(100vw - 120px) !important;
  }

  html body #final-stage
    .services-primary.kt-gallery-wall-gateway
    > .service-card.service-closure {
    width: 100vw !important;
  }
}

.kt-gallery-wall-gateway .kt-field-notes-card {
  background: none;
}

/* Direct returns from About land on the European Field Notes card itself. */
#about-gateway-card {
  scroll-margin-top: clamp(150px, 17vh, 200px);
}

@media (max-width: 900px) {
  #about-gateway-card {
    scroll-margin-top: 72px;
  }
}

.kt-gallery-wall-gateway .kt-map-card {
  background: url("../images/north-island-new-zealand-satellite-map-kiwitile.webp") center / cover no-repeat;
}

.kt-gallery-wall-gateway .kt-map-card .service-image,
.kt-gallery-wall-gateway .kt-field-notes-card .service-image {
  padding: 0;
}

.kt-gallery-wall-gateway .kt-map-card .service-media,
.kt-gallery-wall-gateway .kt-field-notes-card .service-media {
  aspect-ratio: 1300 / 690;
  border-radius: var(--svc-radius);
}

.kt-gallery-wall-gateway .kt-field-notes-card .service-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  background:
    url("../images/europe/078-dt-sofia-bulgaria-european-mosaic-field-notes..webp")
    center / cover no-repeat;
}

.kt-gallery-wall-gateway .kt-map-card .service-text,
.kt-gallery-wall-gateway .kt-field-notes-card .service-text {
  display: none;
}

.kt-gallery-wall-gateway .kt-map-card .service-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.kt-gallery-wall-gateway .kt-map-copylock {
  position: absolute;
  left: clamp(34px, 3.8vw, 72px);
  right: auto;
  top: calc(50% + clamp(60px, 6.5vw, 112px));
  transform: translateY(-50%);
  z-index: 2;

  width: min(34vw, 520px);
  max-width: calc(100% - clamp(128px, 12.8vw, 248px));

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  text-align: left;
  color: rgba(228, 205, 174, 0.9);

  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.72),
    0 14px 34px rgba(0, 0, 0, 0.7);
}

.kt-gallery-wall-gateway .kt-map-kicker {
  margin: 0 0 clamp(18px, 1.5vw, 28px);

  font-family: var(--font-sans);
  font-size: clamp(10px, 0.78vw, 15px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.38em;
  text-transform: uppercase;

  color: rgba(224, 163, 83, 0.92);
}

.kt-gallery-wall-gateway .kt-map-title {
  width: 100%;
  margin: 0;

  font-family: var(--font-serif);
  font-size: clamp(42px, 4.3vw, 82px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.025em;
  text-transform: uppercase;

  color: rgba(240, 190, 111, 0.98);
}

.kt-gallery-wall-gateway .kt-map-title span {
  display: block;
  width: 100%;
  text-align: left;
}

.kt-gallery-wall-gateway .kt-map-title .kt-mobile-landscape-break {
  display: none;
}

.kt-gallery-wall-gateway .kt-map-rule {
  width: clamp(180px, 17vw, 330px);
  height: 1px;
  margin: clamp(22px, 2vw, 34px) 0 clamp(20px, 1.8vw, 30px);

  background: linear-gradient(
    90deg,
    rgba(224, 163, 83, 0.78),
    rgba(224, 163, 83, 0.16),
    transparent
  );
}

.kt-gallery-wall-gateway .kt-map-copy {
  max-width: none;
  margin: 0;

  font-family: var(--font-sans);
  font-size: clamp(16px, 1.35vw, 26px);
  font-weight: 650;
  line-height: 1.25;

  color: rgba(238, 226, 208, 0.74);
}

.kt-gallery-wall-gateway .kt-map-card .kt-gw-cta {
  align-self: flex-start;
  margin-left: 0;
  margin-right: 0;
  margin-top: clamp(22px, 2vw, 36px);

  border-width: 2px;

  width: clamp(250px, 24vw, 420px);
  min-width: 0;

  padding: clamp(12px, 1.05vw, 20px) clamp(20px, 2vw, 38px);

  font-size: clamp(10px, 0.82vw, 15px);
  letter-spacing: 0.28em;
  white-space: nowrap;
}

.kt-gallery-wall-gateway .kt-field-notes-card .service-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
  linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.93) 18%,
    rgba(0, 0, 0, 0.82) 30%,
    rgba(0, 0, 0, 0.58) 40%,
    rgba(0, 0, 0, 0.22) 48%,
    rgba(0, 0, 0, 0.06) 54%,
    transparent 58%
  );
}

.kt-gallery-wall-gateway .kt-field-notes-copylock {
  position: absolute;
  right: clamp(34px, 3.8vw, 72px);
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;

  width: min(34vw, 520px);
  max-width: calc(100% - clamp(128px, 12.8vw, 248px));

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;

  text-align: right;
  color: rgba(228, 205, 174, 0.9);

  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.72),
    0 14px 34px rgba(0, 0, 0, 0.7);
}

.kt-gallery-wall-gateway .kt-field-notes-kicker {
  margin: 0 0 clamp(18px, 1.5vw, 28px);

  font-family: var(--font-sans);
  font-size: clamp(10px, 0.78vw, 15px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.38em;
  text-transform: uppercase;

  color: rgba(224, 163, 83, 0.92);
}

.kt-gallery-wall-gateway .kt-field-notes-title {
  width: 100%;
  margin: 0;

  font-family: var(--font-serif);
  font-size: clamp(46px, 4.7vw, 90px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.025em;
  text-transform: uppercase;

  color: rgba(240, 190, 111, 0.98);
}

.kt-gallery-wall-gateway .kt-field-notes-title span {
  display: block;
  width: 100%;
  text-align: right;
}

.kt-gallery-wall-gateway .kt-field-notes-rule {
  width: clamp(180px, 17vw, 330px);
  height: 1px;
  margin: clamp(22px, 2vw, 34px) 0 clamp(20px, 1.8vw, 30px);

  background: linear-gradient(
    270deg,
    rgba(224, 163, 83, 0.78),
    rgba(224, 163, 83, 0.16),
    transparent
  );
}

.kt-gallery-wall-gateway .kt-field-notes-copy {
  max-width: none;
  margin: 0;

  font-family: var(--font-sans);
  font-size: clamp(16px, 1.35vw, 26px);
  font-weight: 650;
  line-height: 1.25;

  color: rgba(238, 226, 208, 0.74);
}

.kt-gallery-wall-gateway .kt-field-notes-card .kt-gw-cta {
  align-self: flex-end;
  margin-left: 0;
  margin-right: 0;
  margin-top: clamp(22px, 2vw, 36px);

  border-width: 2px;

  width: clamp(250px, 24vw, 420px);
  min-width: 0;

  padding: clamp(12px, 1.05vw, 20px) clamp(20px, 2vw, 38px);

  font-size: clamp(10px, 0.82vw, 15px);
  letter-spacing: 0.28em;
  white-space: nowrap;
}

.kt-gallery-wall-gateway .service-card.service-closure {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

/* Real navigation lives on the CTA (was a full-card <a>). */
.kt-gallery-wall-gateway a.kt-gw-cta {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/*
  Desktop: invisible full-card hit layer keeps whole-card click.
  Mobile: layer is disabled — only the CTA button is tappable.
*/
.kt-gallery-wall-gateway .kt-gw-card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 900px) {
  .kt-gallery-wall-gateway .service-card.service-closure {
    cursor: default;
  }

  .kt-gallery-wall-gateway .kt-gw-card-hit {
    display: none;
    pointer-events: none;
  }

  .kt-gallery-wall-gateway a.kt-gw-cta {
    z-index: 3;
    pointer-events: auto;
  }
}

.kt-gallery-wall-gateway {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.4vw, 40px);
}

.kt-final-stage__content .kt-gateway-closing {
  position: sticky;
  top: var(--kt-footer-pin-sticky-top, clamp(100px, 18vh, 170px));
  z-index: 2;
  width: var(--svc-primary-rail);
  max-width: none;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding:
    clamp(49px, 5.3vw, 84px)
    clamp(28px, 3.8vw, 48px)
    clamp(50px, 5.5vw, 86px);
  background: none;
  border: 0;
  box-shadow: none;
}

.kt-final-stage__content .kt-gateway-closing .kvx-closing__lead {
  margin: 0;
  max-width: clamp(900px, 84vw, 1180px);
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.34vw, 25px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(236, 222, 198);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 18px rgba(0, 0, 0, 0.55),
    0 18px 48px rgba(0, 0, 0, 0.42);
}

.kt-final-stage__content .kt-gateway-closing .kvx-closing__lead + .kvx-closing__lead {
  margin-top: clamp(6px, 0.8vw, 12px);
}

.kt-final-stage__content .kt-gateway-closing .kvx-closing__lead--precision {
  font-size: clamp(20px, 1.67vw, 31px);
}

@media (min-width: 901px) {
  .kt-final-stage__content .kt-gateway-closing .kvx-closing__lead--precision {
    max-width: none;
    white-space: nowrap;
  }
}

.kt-final-stage__content .kt-gateway-closing .kvx-closing__emphasis {
  margin: clamp(21px, 1.85vw, 34px) 0 0;
  max-width: clamp(900px, 84vw, 1180px);
  font-family: var(--font-serif);
  font-size: clamp(33px, 3.3vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(245, 204, 135);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16),
    0 6px 22px rgba(0, 0, 0, 0.58),
    0 24px 64px rgba(0, 0, 0, 0.48);
}

.kt-final-stage__content .kt-gateway-closing .kvx-closing__rule {
  display: flex;
  align-items: center;
  gap: 0;
  width: min(clamp(320px, 28vw, 490px), 100%);
  margin: clamp(32px, 2.6vw, 49px) 0 clamp(28px, 2.3vw, 42px);
}

.kt-final-stage__content .kt-gateway-closing .kvx-closing__rule-line {
  flex: 1 1 auto;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(198, 118, 48) 18%,
    rgb(198, 118, 48) 82%,
    transparent
  );
}

.kt-final-stage__content .kt-gateway-closing .kvx-closing__rule-diamond {
  flex: 0 0 auto;
  width: clamp(6px, 0.52vw, 10px);
  height: clamp(6px, 0.52vw, 10px);
  margin: 0 clamp(12px, 1vw, 18px);
  background:  rgb(198, 118, 48);
  transform: rotate(45deg);
}

.kt-final-stage__content .kt-gateway-closing .kvx-closing__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(clamp(258px, 21.5vw, 388px), 100%);
  min-height: clamp(47px, 3.65vw, 67px);
  padding: clamp(13px, 1.02vw, 18px) clamp(27px, 2.1vw, 40px);
  border: 1.5px solid rgb(222, 150, 68);
  background: rgba(8, 8, 8, 0.72);
  color: rgb(245, 204, 135);
  font-family: var(--font-serif);
  font-size: clamp(13px, 1vw, 19px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 244, 224, 0.08);
  transition:
    border-color 260ms ease,
    color 260ms ease,
    background 260ms ease,
    transform 260ms ease,
    box-shadow 260ms ease;
}

.kt-final-stage__content .kt-gateway-closing .kvx-closing__cta:hover,
.kt-final-stage__content .kt-gateway-closing .kvx-closing__cta:focus-visible {
  border-color: rgb(246, 190, 110);
  color: rgb(255, 228, 176);
  background: rgba(12, 12, 12, 0.88);
  transform: translateY(-2px);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 244, 224, 0.12);
}

.kt-final-stage__content .kt-gateway-closing .kvx-closing__cta:focus-visible {
  outline: 2px solid rgb(246, 190, 110);
  outline-offset: 4px;
}

.services-primary .services-heading-card {
  isolation: isolate;
  overflow: visible;
}

.services-primary .services-heading-text {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: clamp(22px, 2.6vw, 32px) clamp(20px, 3vw, 36px)
    clamp(18px, 2.2vw, 26px);
  text-align: center;
  color: rgba(255, 255, 255, 0.84);
  background: transparent;
}

.services-primary .services-heading-eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(11px, 0.86vw, 14px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(217, 154, 82, 0.84);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.54);
}

.services-primary .services-heading-rule {
  width: min(210px, 42vw);
  height: 1px;
  margin: clamp(10px, 1.2vh, 14px) auto clamp(12px, 1.4vh, 18px);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(193, 132, 69, 0.28) 18%,
    rgba(243, 208, 151, 0.84) 50%,
    rgba(193, 132, 69, 0.28) 82%,
    transparent 100%
  );
  box-shadow: 0 0 18px rgba(243, 208, 151, 0.16);
}

.services-primary .services-heading-title {
  position: relative;
  margin: 0 auto;
  display: block;
  max-width: none;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.services-primary .services-heading-title span {
  display: block;
  overflow: visible;
}

.services-primary .services-heading-title-ivory {
  font-size: clamp(38px, 8vw, 62px);
  color: rgba(244, 238, 228, 0.96);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.52),
    0 10px 34px rgba(0, 0, 0, 0.46);
}

.services-primary .services-heading-title-gold {
  margin-top: clamp(4px, 0.5vw, 8px);
  font-size: clamp(42px, 8.8vw, 72px);
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(
    92deg,
    #9d6331 0%,
    #e0ad66 34%,
    #f3d097 54%,
    #8b5226 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.services-primary .services-heading-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 135%;
  height: 95%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.05) 34%,
    rgba(190, 145, 92, 0.045) 58%,
    transparent 78%
  );
  filter: blur(10px);
}

.services-primary .services-heading-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  width: min(220px, 78%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 12%,
    rgba(255, 255, 255, 0.62) 50%,
    rgba(255, 255, 255, 0.18) 88%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.22),
    0 0 28px rgba(184, 155, 118, 0.16);
}

.services-primary .services-heading-sub {
  margin: clamp(16px, 1.8vw, 22px) auto 0;
  max-width: 48ch;
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.04em;
  color: rgba(232, 228, 220, 0.78);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.62),
    0 0 14px rgba(255, 255, 255, 0.08);
}

.services-primary .service-image {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  padding: var(--svc-inset) var(--svc-inset) 0;
  border-top-left-radius: var(--svc-radius);
  border-top-right-radius: var(--svc-radius);
}

.services-primary .service-card:not(.service-closure) .service-media {
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  aspect-ratio: var(--svc-card-media-ratio, var(--svc-media-ratio));
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(224, 163, 83, 0.72);
  border-top-left-radius: var(--svc-media-radius);
  border-top-right-radius: var(--svc-media-radius);
}

.services-primary .service-media img {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: calc(100% + var(--svc-parallax-bleed));
  object-fit: cover;
  object-position: center bottom;
  transform: translate3d(0, 0, 0) scale(1.08);
  will-change: transform;
  backface-visibility: hidden;
}

.services-primary .service-image .service-material {
  position: absolute;
  right: calc(var(--svc-inset) + 16px);
  bottom: 10px;
  display: var(--svc-material-display, inline);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  color: rgba(222, 205, 182, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.42);
  padding: 6px 10px;
  background: radial-gradient(
    140% 120% at 50% 50%,
    rgba(0, 0, 0, 0.58),
    rgba(0, 0, 0, 0.46) 55%,
    rgba(0, 0, 0, 0.34) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 5px;
}

.services-primary .service-text {
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--svc-text-pad-top) var(--svc-text-pad-inline)
    var(--svc-text-pad-bottom);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--svc-text-gap);
  text-align: center;
  letter-spacing: 0.06em;
  color: rgba(222, 205, 182, 0.94);
  background: none;
}

.kt-gallery-wall-gateway .service-card.service-closure .service-text {
  background: url("../images/kiwitile-oxidised-inner-olive-bronze-stone.webp") center / cover no-repeat;
}

.services-primary .service-title {
  position: relative;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(50px, 4.5vw, 70px);
  line-height: 0.95;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: rgba(215, 168, 96, 0.94);
  -webkit-text-stroke: 0.45px rgba(255, 232, 180, 0.24);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 22px rgba(214, 164, 91, 0.14),
    2.5px 3.5px 6.5px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(255, 218, 148, 0.11);
}

.services-primary .service-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: -1;
  transform: translate(-50%, -50%);
  width: 128%;
  height: 88%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 226, 168, 0.09),
    rgba(214, 164, 91, 0.05) 42%,
    transparent 72%
  );
  filter: blur(10px);
  pointer-events: none;
}

.services-primary .service-divider {
  width: var(--svc-divider-w);
  height: var(--svc-divider-h);
  margin: clamp(4px, 0.45vw, 6px) auto clamp(6px, 0.7vw, 8px);
  flex-shrink: 0;
  background: url("../images/008-dt-ornamental-divider.svg") center / 100% 100%
    no-repeat;
  opacity: 0.94;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 9px rgba(255, 211, 106, 0.18));
}

.services-primary .service-micro {
  margin: 0;
  max-width: 64ch;
  font-family: var(--font-sans);
  font-size: clamp(15.5px, 1.65vw, 20px);
  line-height: 1.44;
  letter-spacing: 0.025em;
  text-wrap: balance;
  color: rgba(232, 202, 166, 0.96);
}

.services-primary .service-micro--secondary {
  max-width: 64ch;
  font-family: var(--font-sans);
  font-size: clamp(14.5px, 1.5vw, 18px);
  line-height: 1.42;
  letter-spacing: 0.02em;
  color: rgba(218, 188, 150, 0.92);
  opacity: 0.86;
  -webkit-text-stroke: 0.25px rgba(255, 228, 176, 0.22);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.services-primary .service-card--primary .service-micro {
  font-size: var(--svc-primary-copy-size);
  line-height: var(--svc-primary-copy-line-height);
}

.services-primary .service-card--primary .service-micro--secondary {
  font-size: var(--svc-primary-secondary-size);
  line-height: var(--svc-primary-secondary-line-height);
}

.services-primary .service-card--primary .kt-svc-cta {
  font-size: var(--svc-primary-cta-size);
}

.services-primary .service-advisory .service-micro--secondary {
  max-width: none;
  white-space: var(--svc-primary-secondary-white-space);
}

.services-primary .service-micro ~ .kt-svc-cta,
.services-primary .kt-services-closing .kt-svc-cta {
  border-width: 2px;
  padding-block: clamp(12px, 1.1vw, 14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 224, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34),
    0 2px 0 rgba(0, 0, 0, 0.52),
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 0 14px rgba(215, 168, 96, 0.06);
  font-weight: 550;
}

.services-primary .service-micro ~ .kt-svc-cta:hover,
.services-primary .service-micro ~ .kt-svc-cta:focus-visible,
.services-primary .kt-services-closing .kt-svc-cta:hover,
.services-primary .kt-services-closing .kt-svc-cta:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 224, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.38),
    0 3px 0 rgba(0, 0, 0, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(215, 168, 96, 0.1);
}

/* Four compact integrated-system cards between the primary services and Failure. */
.services-primary .service-system-row {
  width: var(--svc-primary-rail);
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
}

.services-primary .service-system-row .service-system-card {
  width: auto;
  min-width: 0;
  min-height: clamp(330px, 27vw, 430px);
  margin: 0;
  padding: var(--svc-inset);
  gap: clamp(11px, 1vw, 15px);
}

.services-primary .service-system-card__media {
  position: relative;
  flex: 0 0 clamp(175px, 15vw, 245px);
  width: 100%;
  height: clamp(175px, 15vw, 245px);
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(224, 163, 83, 0.58);
  border-radius:
    calc(var(--svc-radius) - 2px)
    calc(var(--svc-radius) - 2px)
    0
    0;
  background:
    linear-gradient(135deg, rgba(224, 163, 83, 0.08), transparent 48%),
    radial-gradient(circle at 50% 35%, rgba(232, 202, 166, 0.08), transparent 62%),
    rgba(8, 7, 6, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 224, 0.06),
    inset 0 0 38px rgba(0, 0, 0, 0.28);
}

.services-primary .service-system-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.services-primary .service-system-card__media span {
  position: relative;
  z-index: 1;
  padding: 5px 8px;
  font-family: var(--font-sans);
  font-size: clamp(8px, 0.62vw, 10px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(218, 188, 150, 0.62);
  background: rgba(9, 8, 7, 0.72);
  border-radius: 3px;
}

.services-primary .service-system-card__content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 0.9vw, 14px);
  text-align: center;
}

.services-primary .service-system-card__title {
  margin: 0;
  min-height: 2.35em;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.34vw, 22px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-wrap: balance;
  color: rgba(215, 168, 96, 0.94);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    2px 3px 6px rgba(0, 0, 0, 0.48);
}

.services-primary .service-system-card__description {
  margin: auto 0 0;
  width: 100%;
  max-width: 22ch;
  min-height: 2.8em;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: clamp(12.5px, 1.05vw, 15.5px);
  font-weight: 650;
  line-height: 1.42;
  letter-spacing: 0.025em;
  text-align: center;
  text-wrap: balance;
  color: rgba(218, 188, 150, 0.86);
}

.services-primary .service-system-card__description strong {
  font: inherit;
  color: inherit;
}

.services-primary .service-system-card .kt-svc-cta {
  width: 90%;
  min-width: 0;
  margin: 0;
  padding: clamp(10px, 0.8vw, 12px) clamp(8px, 0.8vw, 14px);
  border-width: 2px;
  font-size: clamp(8px, 0.66vw, 11px);
  letter-spacing: 0.13em;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 224, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34),
    0 2px 0 rgba(0, 0, 0, 0.52),
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 0 14px rgba(215, 168, 96, 0.06);
}

.services-primary .service-system-card .kt-svc-cta:hover,
.services-primary .service-system-card .kt-svc-cta:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 224, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.38),
    0 3px 0 rgba(0, 0, 0, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(215, 168, 96, 0.1);
}

@media (max-width: 820px) {
  .services-primary .service-system-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services-primary {
    --svc-primary-card-width: calc(100vw - 20px);
    --svc-primary-media-ratio: 19 / 20;
    --svc-primary-copy-size: 20px;
    --svc-primary-secondary-size: 18px;
    --svc-primary-copy-line-height: 1.5;
    --svc-primary-secondary-line-height: 1.5;
    --svc-primary-secondary-white-space: normal;
    --svc-primary-cta-size: 16px;
    --svc-primary-material-display: none;
  }

  .services-primary .kt-services-opening > header.services-heading-card {
    --svc-card-width: var(--svc-primary-card-width);
    width: var(--svc-primary-card-width);
  }
}

@media (max-width: 520px) {
  .services-primary .service-system-row {
    grid-template-columns: 1fr;
  }

  .services-primary .service-system-card__media {
    flex-basis: 190px;
    height: 190px;
  }
}

@media (max-width: 767px) {
  .services-primary .service-system-row {
    width: var(--svc-primary-card-width);
    grid-template-columns: 1fr;
  }

  .services-primary .service-system-row .service-system-card {
    width: 100%;
  }

  /* Lift body-copy contrast on phones without changing tablet or desktop. */
  .services-primary .service-card--primary .service-micro {
    color: rgba(240, 215, 184, 0.98);
  }

  .services-primary .service-card--primary .service-micro--secondary {
    color: rgba(232, 207, 176, 0.96);
    opacity: 0.9;
  }

  .services-primary .service-system-card__description {
    color: rgba(232, 207, 176, 0.92);
  }
}

/* Compact consequence gateway beneath the integrated systems. */
.services-primary .service-card.service-failure {
  display: grid;
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  height: clamp(280px, 25vw, 390px);
}

.services-primary .service-failure .service-image {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: var(--svc-inset) 0 var(--svc-inset) var(--svc-inset);
  border-radius: var(--svc-radius) 0 0 var(--svc-radius);
}

.services-primary .service-card.service-failure .service-media {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border: 1px solid rgba(224, 163, 83, 0.72);
  border-radius: var(--svc-media-radius) 0 0 var(--svc-media-radius);
}

.services-primary .service-failure__caption {
  flex: 0 0 auto;
  margin: clamp(7px, 0.65vw, 10px) clamp(12px, 1.4vw, 20px) 0;
  font-family: var(--font-sans);
  font-size: clamp(11px, 0.86vw, 14px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.025em;
  text-align: center;
  text-wrap: balance;
  color: rgba(218, 188, 150, 0.86);
}

.services-primary .service-failure .service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 70%,
    rgba(15, 11, 7, 0.34) 88%,
    rgba(15, 11, 7, 0.72) 100%
  );
}

.services-primary .service-failure .service-media img {
  inset: auto;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 5%;
  transform: translate3d(0, 0, 0) scale(1.07);
  filter: brightness(0.74) contrast(1.14) saturate(0.74) sepia(0.18);
}

.services-primary .service-failure .service-text {
  align-self: stretch;
  padding: clamp(22px, 2.2vw, 34px) clamp(24px, 3.2vw, 54px);
}

.services-primary .service-failure__eyebrow {
  margin: 0 0 clamp(4px, 0.5vw, 8px);
  font-family: var(--font-sans);
  font-size: clamp(9px, 0.72vw, 12px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(224, 163, 83, 0.88);
}

.services-primary .service-failure .service-title {
  font-size: clamp(40px, 3.7vw, 62px);
}

.services-primary .service-failure .service-divider {
  width: var(--svc-divider-w);
  margin-block: clamp(2px, 0.3vw, 4px) clamp(4px, 0.5vw, 6px);
}

.services-primary .service-failure .service-micro {
  font-size: clamp(14px, 1.25vw, 18px);
}

.services-primary .service-failure .service-micro--secondary {
  font-size: clamp(13px, 1.1vw, 16px);
}

.services-primary .service-failure .kt-svc-cta {
  margin-top: clamp(4px, 0.55vw, 8px);
  padding-block: clamp(11px, 0.9vw, 14px);
}

.services-primary .service-card.service-closure {
  height: auto;
  min-height: 0;
  --svc-text-pad-top: 14px;
  --svc-text-pad-bottom: 18px;
}

.services-primary .service-closure .service-image {
  flex: 0 0 auto;
  padding: 0;
}

.services-primary .service-closure .service-media {
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  aspect-ratio: 1300 / 690;
  overflow: hidden;
}

.services-primary .service-closure .service-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: none;
}

/*
  Gallery-wall gateway card — match map/field-notes corners.
  Clip the stack to --svc-radius so dark portrait cells (#0b0907)
  don't square-cut the rounded gold frame.
*/
.kt-gallery-wall-gateway .service-card.service-closure:has(#matty-rod-homepage) {
  background: #0b0907;
  overflow: hidden;
  border-radius: var(--svc-radius);
}

.kt-gallery-wall-gateway .service-card.service-closure:has(#matty-rod-homepage) .service-image {
  padding: 0;
  overflow: hidden;
  border-radius: inherit;
}

.kt-gallery-wall-gateway .service-card.service-closure:has(#matty-rod-homepage) .service-media {
  aspect-ratio: 1300 / 690;
  overflow: hidden;
  border-radius: inherit;
}

.kt-gallery-wall-gateway .service-card.service-closure:has(#matty-rod-homepage) .service-text {
  display: none;
}

#matty-rod-homepage {
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
  color: rgba(236, 222, 198, 0.9);
  overflow: hidden;
  border-radius: inherit;
}

#matty-rod-homepage .kt-gw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.52fr) minmax(0, 1fr);
  gap: 0;
  height: 100%;
  padding: 0;
  background: none;
  overflow: hidden;
  border-radius: inherit;
}

#matty-rod-homepage .kt-gw-media {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0b0907;
}

/* Desktop 3-col: portraits own the left/right rounded ends */
#matty-rod-homepage .mrx-media--left {
  border-radius: var(--svc-radius, 8px) 0 0 var(--svc-radius, 8px);
}

#matty-rod-homepage .mrx-media--right {
  border-radius: 0 var(--svc-radius, 8px) var(--svc-radius, 8px) 0;
}

.services-primary .service-closure .service-media #matty-rod-homepage img {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: sepia(0.3) saturate(1.24) contrast(0.98) brightness(0.88);
}

#matty-rod-homepage .mrx-media--left img {
  filter: sepia(0.38) saturate(1.22) contrast(0.98) brightness(0.75) !important;
}

#matty-rod-homepage .mrx-media--left::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 38% at 24% 34%, rgba(0, 0, 0, 0.14), transparent 72%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.05) 28%, transparent 48%);
}

#matty-rod-homepage .mrx-media--right img {
  object-position: center 36%;
  filter: sepia(0.2) saturate(1.26) contrast(0.98) brightness(0.92);
}

#matty-rod-homepage .kt-gw-panel {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(181, 137, 77, 0.14) 0%,
      rgba(120, 91, 52, 0.08) 34%,
      transparent 68%
    ),
    linear-gradient(
      180deg,
      #5a3f24 0%,
      #46351f 42%,
      #2f271b 100%
    );
}

#matty-rod-homepage .kt-gw-panel-inner {
  width: 100%;
  height: 100%;
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(181, 137, 77, 0.14) 0%,
      rgba(120, 91, 52, 0.08) 34%,
      transparent 68%
    ),
    linear-gradient(
      180deg,
      #5a3f24 0%,
      #46351f 42%,
      #2f271b 100%
    );
}

#matty-rod-homepage .kt-gw-kicker {
  margin: 0 0 clamp(10px, 1vw, 14px);
  font-size: clamp(8px, 0.72vw, 14px);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(224, 163, 83, 0.78);
}

/* Match Project Environments / European Field Notes title styling. */
#matty-rod-homepage .kt-gw-title {
  width: 100%;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(42px, 4.3vw, 82px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: rgba(240, 190, 111, 0.98);
}

#matty-rod-homepage .kt-gw-title span {
  display: block;
  width: 100%;
  text-align: center;
}

/* Desktop gateway: keep the longest title line inside the narrow centre panel. */
@media (min-width: 901px) {
  #matty-rod-homepage .kt-gw-title {
    font-size: clamp(40px, 3.2vw, 68px);
    letter-spacing: -0.04em;
  }

  #matty-rod-homepage .kt-gw-title span:nth-child(2) {
    transform: translateX(-4px);
  }
}

/* Phone: keep THE GALLERY WALL on one line (or soft-wrap as a phrase). */
@media (max-width: 900px) {
  #matty-rod-homepage .kt-gw-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.28em;
    row-gap: 0;
    width: 100%;
  }

  #matty-rod-homepage .kt-gw-title span {
    display: inline;
    width: auto;
    text-align: inherit;
  }
}

#matty-rod-homepage .kt-gw-rule {
  width: min(140px, 70%);
  height: 1px;
  margin: clamp(18px, 1.8vw, 26px) auto;
  background: linear-gradient(90deg, transparent, rgba(224, 163, 83, 0.62), transparent);
}

#matty-rod-homepage .kt-gw-body {
  max-width: 24ch;
  margin: 0 auto;
  font-size: clamp(13px, 1.18vw, 21px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0;
  color: rgba(228, 205, 174, 0.86);
}

#matty-rod-homepage .kt-gw-body + .kt-gw-body {
  margin-top: clamp(12px, 1.2vw, 18px);
  color: rgba(219, 195, 164, 0.74);
}

#matty-rod-homepage .kt-gw-cta {
  margin-top: clamp(16px, 1.6vw, 30px);
  min-width: 0;
  width: min(100%, clamp(176px, 11.2vw, 215px));
  padding: clamp(10px, 0.9vw, 16px) clamp(12px, 1.2vw, 24px);
  font-size: clamp(9px, 0.72vw, 13px);
  letter-spacing: 0.14em;
  white-space: nowrap;
}

#matty-rod-homepage .mrx-name {
  position: absolute;
  left: clamp(18px, 2.2vw, 30px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(6px, 0.58vw, 9px);
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 52px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 190, 111, 0.96);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.56);
}

#matty-rod-homepage :is(.mrx-name-main, .mrx-experience, .mrx-role) {
  display: block;
}

#matty-rod-homepage :is(.mrx-experience, .mrx-role) {
  font-family: var(--font-sans);
  line-height: 1;
  text-transform: uppercase;
}

#matty-rod-homepage .mrx-experience {
  padding-top: clamp(6px, 0.65vw, 11px);
  font-size: clamp(9.5px, 0.9vw, 13.5px);
  font-weight: 600;
  letter-spacing: clamp(0.2em, 0.28vw, 0.31em);
  color: rgba(245, 235, 216, 0.78);
}

#matty-rod-homepage .mrx-role {
  font-size: clamp(8.5px, 0.82vw, 11.5px);
  font-weight: 700;
  letter-spacing: clamp(0.18em, 0.24vw, 0.28em);
  color: rgba(224, 163, 83, 0.72);
}

.services-primary .service-closure .service-text {
  flex: 0 0 auto;
}

.services-closure-line {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.85vw, 22px);
  line-height: 1.44;
  letter-spacing: 0.025em;
  color: rgba(232, 202, 166, 0.96);
}

.services-primary .service-card.kt-services-closing {
  width: var(--svc-primary-rail);
  max-width: none;
  height: auto;
  min-height: 0;
}

.services-primary .service-card.kt-services-closing .service-text {
  flex: 0 0 auto;
  padding:
    clamp(14px, 1.8vw, 22px)
    clamp(28px, 3.8vw, 48px)
    clamp(16px, 2vw, 24px);
}

.services-primary .kt-services-closing .kt-svc-cta {
  padding-block: clamp(11px, 0.9vw, 14px);
}

.services-primary .kt-services-closing__line {
  margin: 0 auto;
  max-width: 28ch;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.22vw, 30px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.04em;
  text-wrap: balance;
  color: rgba(232, 202, 166, 0.96);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 36px rgba(0, 0, 0, 0.42);
}

@media (min-width: 1101px) {
  .services-primary .kt-services-closing__line {
    width: 100%;
    max-width: none;
    font-size: clamp(18px, 1.65vw, 26px);
    white-space: nowrap;
  }

  .services-primary .kt-services-closing .kt-svc-cta {
    margin-top: clamp(2px, 0.25vw, 4px);
  }
}

.service-tile .service-media img {
  filter: brightness(0.87) contrast(1.48) saturate(1) sepia(0.1);
}

.service-mosaic .service-media img {
  filter: brightness(0.95) contrast(1.06) saturate(1.02) sepia(0.06);
}

/* Primary service cards — phone image crop tweaks. */
@media (max-width: 767px) {
  .services-primary .service-mosaic .service-media img {
    object-position: 23% 30% !important;
  }

  /* Stone card — phone crop. */
  .services-primary .service-stone .service-media img {
    object-position: 78% 0% !important;
  }
}


.kt-charcoal-tail {
  height: clamp(120px, 12vw, 230px);
  pointer-events: none;
}

@media (prefers-reduced-transparency: reduce) {
  .services-primary .service-image .service-material {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
/* SERVICES CLOSURE CARD ONLY — lock image movement */
.services-primary .service-card.service-closure .service-media img {
  height: 100% !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  will-change: auto !important;
}

.services-primary
  .service-card.service-closure
  .service-media
  #matty-rod-homepage
  .mrx-media:not(.mrx-media--right)
  img {
  transform: scale(1.085) !important;
  transform-origin: center center;
}

/* Homepage gateway cards — phone-only portrait layout. */
@media (max-width: 900px) {
  .kt-gallery-wall--homepage-gateway .kt-gallery-wall-gateway {
    width: 100%;
    gap: 28px;
  }

  .kt-gallery-wall--homepage-gateway
    .kt-gallery-wall-gateway
    .service-card.service-closure {
    display: flex;
    width: calc(100vw - 20px);
    height: clamp(460px, 132vw, 700px);
    min-height: 460px;
    opacity: 1;
    visibility: visible;
  }

  .kt-gallery-wall--homepage-gateway
    .kt-gallery-wall-gateway
    .service-card.service-closure
    .service-image {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
  }

  .kt-gallery-wall--homepage-gateway
    .kt-gallery-wall-gateway
    .service-card.service-closure
    .service-media {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    aspect-ratio: auto;
    opacity: 1;
    visibility: visible;
  }

  #matty-rod-homepage .kt-gw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 44% 56%;
  }

  /* Mobile: portraits top, panel bottom — radius on outer corners only */
  #matty-rod-homepage .mrx-media--left {
    grid-column: 1;
    grid-row: 1;
    border-radius: var(--svc-radius, 8px) 0 0 0;
  }

  #matty-rod-homepage .mrx-media--right {
    grid-column: 2;
    grid-row: 1;
    border-radius: 0 var(--svc-radius, 8px) 0 0;
  }

  #matty-rod-homepage .kt-gw-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    border-radius: 0 0 var(--svc-radius, 8px) var(--svc-radius, 8px);
    overflow: hidden;
  }

  #matty-rod-homepage .kt-gw-panel-inner {
    padding: 16px 18px;
  }

  #matty-rod-homepage .kt-gw-kicker {
    margin-bottom: 10px;
    font-size: 13px;
    letter-spacing: 0.28em;
  }

  #matty-rod-homepage .kt-gw-title {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 0.92;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: rgba(240, 190, 111, 0.98);
  }

  #matty-rod-homepage .kt-gw-rule {
    margin: 10px auto;
  }

  #matty-rod-homepage .kt-gw-body {
    font-size: 13px;
    line-height: 1.3;
    color: rgba(234, 213, 183, 0.91);
  }

  #matty-rod-homepage .kt-gw-body + .kt-gw-body {
    margin-top: 7px;
    color: rgba(228, 204, 173, 0.81);
  }

  #matty-rod-homepage .kt-gw-cta {
    margin-top: 10px;
    padding-block: 9px;
  }

  #matty-rod-homepage .mrx-name {
    left: 10px;
    bottom: 10px;
    gap: 5px;
    font-size: clamp(22px, 6.2vw, 28px);
  }

  #matty-rod-homepage .mrx-experience {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  #matty-rod-homepage .mrx-role {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .kt-gallery-wall-gateway .kt-map-copylock,
  .kt-gallery-wall-gateway .kt-field-notes-copylock {
    left: 24px;
    right: 24px;
    top: 50%;
    width: auto;
    max-width: none;
    transform: translateY(-50%);
  }

  .kt-gallery-wall-gateway .kt-map-title,
  .kt-gallery-wall-gateway .kt-field-notes-title,
  #matty-rod-homepage .kt-gw-title {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 0.92;
  }

  .kt-gallery-wall-gateway .kt-map-kicker,
  .kt-gallery-wall-gateway .kt-field-notes-kicker {
    margin-bottom: 14px;
  }

  .kt-gallery-wall-gateway .kt-map-rule,
  .kt-gallery-wall-gateway .kt-field-notes-rule {
    width: min(180px, 70%);
    margin-block: 18px;
  }

  .kt-gallery-wall-gateway .kt-map-card .kt-gw-cta,
  .kt-gallery-wall-gateway .kt-field-notes-card .kt-gw-cta {
    width: min(100%, 250px);
    margin-top: 20px;
    padding: 12px 14px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  /* Project Environments — light dark wash over the map (mobile only). */
  .kt-gallery-wall-gateway .kt-map-card .service-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.4);
  }

  .kt-gallery-wall-gateway .kt-field-notes-card .service-media::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.16) 0%,
      rgba(0, 0, 0, 0.48) 42%,
      rgba(0, 0, 0, 0.88) 100%
    );
  }
}

/* Keep the closing card aligned with the primary phone rail. */
@media (max-width: 767px) {
  .services-primary .service-card.kt-services-closing {
    width: var(--svc-primary-card-width);
  }

  .kt-charcoal-tail {
    height: 32px;
  }
}

@media (max-width: 900px) {
  .kt-gallery-wall-gateway .kt-map-card {
    background-position: 42% center;
    background-size: cover;
    background-color: #080706;
  }

  .kt-gallery-wall-gateway .kt-map-copy > span {
    display: block;
  }

  .kt-gallery-wall-gateway .kt-map-copylock,
  .kt-gallery-wall-gateway .kt-field-notes-copylock {
    top: 65%;
  }

  .kt-gallery-wall-gateway .kt-map-copylock {
    top: 72%;
  }

  #matty-rod-homepage .kt-gw-grid {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(280px, 82vw, 390px) auto clamp(280px, 82vw, 390px);
  }

  #matty-rod-homepage .mrx-media--left {
    grid-column: 1;
    grid-row: 1;
  }

  #matty-rod-homepage .kt-gw-panel {
    grid-column: 1;
    grid-row: 2;
    height: auto;
  }

  #matty-rod-homepage .mrx-media--right {
    grid-column: 1;
    grid-row: 3;
  }

  #matty-rod-homepage .mrx-media--left img {
    object-position: center 32% !important;
  }

  #matty-rod-homepage .mrx-media--right img {
    object-position: center 30% !important;
  }

  #matty-rod-homepage .mrx-name {
    left: 16px;
    bottom: 16px;
    gap: 7px;
    font-size: clamp(30px, 8vw, 36px);
  }

  #matty-rod-homepage .mrx-experience {
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0.14em;
  }

  #matty-rod-homepage .mrx-role {
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0.12em;
  }

  #matty-rod-homepage .kt-gw-media,
  #matty-rod-homepage .kt-gw-panel-inner {
    height: auto;
  }

  #matty-rod-homepage .kt-gw-panel-inner {
    padding: 28px 20px;
  }

  #matty-rod-homepage .kt-gw-cta {
    width: min(100%, 290px);
    min-height: 56px;
    margin-top: 20px;
    padding: 15px 20px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0.12em;
  }
}

/*
  Mobile landscape — gallery wall gateway card:
  Matty | Rodrigo at 50% each, title text block full-width underneath.
*/
@media (max-width: 900px) and (orientation: landscape) {
  .kt-gallery-wall-gateway .kt-map-title .kt-mobile-landscape-break {
    display: inline;
  }

  #matty-rod-homepage .kt-gw-grid {
    height: auto !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(300px, 62vh) auto;
    gap: 0;
  }

  #matty-rod-homepage .mrx-media--left {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: min(62vh, 440px);
    border-radius: var(--svc-radius, 8px) 0 0 0;
  }

  #matty-rod-homepage .mrx-media--right {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: min(62vh, 440px);
    border-radius: 0 var(--svc-radius, 8px) 0 0;
  }

  #matty-rod-homepage .kt-gw-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    height: auto;
    border-radius: 0 0 var(--svc-radius, 8px) var(--svc-radius, 8px);
    overflow: hidden;
  }

  #matty-rod-homepage .kt-gw-media {
    height: 100%;
  }

  #matty-rod-homepage .kt-gw-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  #matty-rod-homepage .mrx-media--left img {
    object-position: center 28% !important;
  }

  #matty-rod-homepage .mrx-media--right img {
    object-position: center 28% !important;
  }

  /* Wider side margins on the copy block under the portraits */
  #matty-rod-homepage .kt-gw-panel-inner {
    padding: 22px clamp(48px, 12vw, 110px) 26px;
  }

  /* Match Project Environments / European Field Notes gateway titles */
  #matty-rod-homepage .kt-gw-title {
    font-family: var(--font-serif);
    font-size: clamp(34px, 10vw, 44px);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.025em;
  }

  #matty-rod-homepage .kt-gw-kicker {
    margin-bottom: 12px;
    font-size: clamp(16px, 2.1vw, 20px);
    letter-spacing: 0.3em;
  }

  /* Larger body copy under the title */
  #matty-rod-homepage .kt-gw-body {
    max-width: 46ch;
    font-size: clamp(16px, 2.15vw, 20px);
    font-weight: 600;
    line-height: 1.5;
  }

  #matty-rod-homepage .kt-gw-body + .kt-gw-body {
    margin-top: 12px;
  }

  #matty-rod-homepage .kt-gw-rule {
    margin-block: 14px;
  }

  #matty-rod-homepage .mrx-name {
    left: 12px;
    bottom: 12px;
    font-size: clamp(20px, 3.2vw, 28px);
  }

  /* Services title card — bigger eyebrow + sub copy */
  .services-primary .services-heading-eyebrow {
    font-size: clamp(15px, 2vw, 19px);
    line-height: 1.3;
    letter-spacing: 0.28em;
  }

  .services-primary .services-heading-sub {
    max-width: 52ch;
    font-size: clamp(17px, 2.3vw, 22px);
    line-height: 1.5;
    margin-top: 20px;
  }

  /*
    Primary + integrated service CTAs — slightly brighter gold,
    larger labels for landscape readability.
  */
  .services-primary .service-card--primary .kt-svc-cta,
  .services-primary .service-system-card .kt-svc-cta,
  .services-primary .service-micro ~ .kt-svc-cta {
    --svc-cta-gold: 240 192 124;
    color: rgb(252 220 168 / 0.99);
    border-color: rgb(var(--svc-cta-gold) / 0.86);
    background:
      linear-gradient(
        90deg,
        rgb(var(--svc-cta-gold) / 0.86),
        rgb(var(--svc-cta-gold) / 0.22)
      )
        left center / clamp(24px, 8%, 36px) 1px no-repeat,
      linear-gradient(
        270deg,
        rgb(var(--svc-cta-gold) / 0.86),
        rgb(var(--svc-cta-gold) / 0.22)
      )
        right center / clamp(24px, 8%, 36px) 1px no-repeat,
      linear-gradient(
        180deg,
        rgb(255 226 176 / 0.2),
        rgb(58 40 22 / 0.38) 58%,
        rgb(30 20 12 / 0.48)
      );
    box-shadow:
      inset 0 1px 0 rgb(255 240 210 / 0.22),
      inset 0 -1px 0 rgb(0 0 0 / 0.16),
      0 8px 22px rgb(0 0 0 / 0.2),
      0 0 16px rgb(var(--svc-cta-gold) / 0.12);
    text-shadow:
      0 1px 0 rgb(255 240 210 / 0.28),
      0 2px 10px rgb(0 0 0 / 0.28);
    font-weight: 600;
  }

  .services-primary .service-card--primary .kt-svc-cta,
  .services-primary .service-micro ~ .kt-svc-cta {
    font-size: clamp(15px, 1.9vw, 18px);
    letter-spacing: 0.16em;
    padding-block: clamp(12px, 1.3vw, 15px);
    padding-inline: clamp(22px, 3vw, 36px);
  }

  .services-primary .service-system-card .kt-svc-cta {
    width: min(100%, 100%);
    min-height: 48px;
    padding: 12px 14px;
    font-size: clamp(13px, 1.55vw, 16px);
    letter-spacing: 0.12em;
    line-height: 1.25;
    white-space: normal;
  }
}

/*
  Tablet portrait only: narrow Matty and Rodrigo's portrait areas while
  preserving the gallery-wall gateway card's existing outer dimensions.
*/
@media (min-width: 700px) and (max-width: 900px) and (orientation: portrait) {
  #final-stage #matty-rod-homepage .mrx-media {
    width: 78% !important;
    justify-self: center;
  }

  #final-stage #matty-rod-homepage .mrx-media img {
    object-position: center 23% !important;
  }
}

@media (min-width: 901px) and (max-width: 1100px) and (orientation: portrait) {
  #final-stage #matty-rod-homepage .kt-gw-grid {
    grid-template-columns:
      minmax(0, 0.78fr)
      minmax(0, 0.74fr)
      minmax(0, 0.78fr);
  }

  #final-stage #matty-rod-homepage .mrx-media img {
    object-position: center 23% !important;
  }
}
