/*
 * Editorial rhythm adapted from the existing MIS Holding landing in dist/.
 * Main video and the intermodal flagship deliberately have their own systems.
 * Essential content is never hidden by this stylesheet.
 */

main > .wrap.section:not(.intermodal-feature):not(.hero) {
  padding-block: clamp(72px, 6.7vw, 110px);
}

main > .intro.section {
  padding-block: clamp(76px, 7.2vw, 115px);
  gap: clamp(28px, 4vw, 65px);
}

.intro h1,
.page-hero h1 {
  font-weight: 500;
  letter-spacing: -.062em;
  line-height: 1.075;
}

.intro h1 { font-size: clamp(42px, 5.3vw, 82px); }

.page-hero {
  padding-block: clamp(46px, 5vw, 76px) clamp(48px, 5.2vw, 80px);
}

.page-hero h1 { font-size: clamp(54px, 7.6vw, 118px); }
.page-hero .lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.7; }

.intro-bottom p {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.85;
  color: #515b69;
}

main > .wrap.section > .section-heading h2,
.sector-copy h2,
.fleet-preview h2,
.sustainability-strip h2,
.contact-banner h2,
.split-content h2,
.statement h2,
.fleet-heading h2 {
  font-size: clamp(38px, 4.3vw, 65px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.052em;
}

main > .wrap.section > .section-heading { margin-bottom: clamp(34px, 4vw, 58px); }
.service-grid { gap: clamp(20px, 2.1vw, 34px); }
.service-card { border-top-color: #b9bec5; }
.service-card .card-index { padding-block: 18px; color: #626b79; }
.service-card .service-image { aspect-ratio: 4 / 3; margin-bottom: 27px; }
.service-card h3 { font-size: clamp(26px, 2.1vw, 33px); line-height: 1.16; letter-spacing: -.04em; }
.service-card p { line-height: 1.8; max-width: 39ch; }
.service-card .text-link { margin-top: 20px; }

.service-image,
.news-img,
.sector-photo { isolation: isolate; }

.service-card .service-image img,
.news-card .news-img img:not(.news-monogram),
.sector-photo > img,
.sector-photo > picture > img,
.sustainability-photo img {
  transform: translate3d(0, var(--mis-photo-y, 0px), 0) scale(var(--mis-photo-scale, 1));
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s ease;
  backface-visibility: hidden;
}

.service-card .service-image img,
.news-card .news-img img:not(.news-monogram) { filter: saturate(.92) contrast(1.035); }

.sector-feature {
  position: relative;
  display: block;
  min-height: clamp(800px, 100svh, 1040px);
  overflow: hidden;
  background: #030a13;
}

.sector-feature .sector-photo {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
}

.sector-photo > picture,
.sustainability-photo > picture {
  position: absolute;
  inset: 0;
  display: block;
}

.sector-photo > img,
.sector-photo > picture > img,
.sustainability-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sector-feature .sector-photo::after,
.sustainability-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #030a13ec 0%, #030a13c7 36%, #030a1347 72%, #030a1330),
              linear-gradient(0deg, #030a13c7, transparent 45%, #030a1320);
}

.sector-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 860px);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 7.2vw, 110px) var(--gutter) clamp(85px, 8vw, 125px);
}

.sector-copy h2 {
  font-size: clamp(48px, 5.3vw, 82px);
  line-height: 1.08;
  letter-spacing: -.065em;
  margin-block: 30px 43px;
  max-width: 13ch;
}
.sector-row { padding-block: 27px; transition: background .3s ease, border-color .3s ease; }
.sector-row h3 { font-size: clamp(23px, 1.85vw, 29px); font-weight: 500; line-height: 1.3; }
.sector-row p { font-size: 14px; line-height: 1.75; max-width: 42ch; color: #d0d6df; }
.sector-row > b { transition: transform .3s ease, color .3s ease; }
.sector-photo > img,
.sector-photo > picture > img { filter: saturate(.91) contrast(1.04); }
.sector-feature .sector-photo .eyebrow {
  z-index: 2;
  left: auto;
  right: var(--gutter);
  bottom: 26px;
  max-width: 50%;
  font-size: 10px;
  line-height: 1.6;
  text-align: right;
}

.fleet-preview { gap: clamp(36px, 5vw, 80px); }
.fleet-preview p { font-size: 16px; line-height: 1.85; max-width: 47ch; }
.fleet-category-links { margin-top: 32px; }
.fleet-category-links a { padding-block: 16px; line-height: 1.5; }
.fleet-category-links a::after { transition: transform .3s ease; }
.fleet-toolbar {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 14px;
  background: #eceef2;
  border-color: #d7dce4;
}
.fleet-toolbar a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 11px 20px;
  background: #fff;
  color: #162136;
  border: 1px solid #d0d7e1;
  border-radius: 3px;
  box-shadow: 0 2px 5px #15223705;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.fleet-toolbar a::after {
  content: '↗';
  color: var(--red);
  font-size: 17px;
  line-height: 1;
}
.fleet-toolbar a:hover,
.fleet-toolbar a:focus-visible {
  color: var(--red);
  background: #fff9fa;
  border-color: var(--red);
}
@media (max-width: 860px) {
  .fleet-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-block: 10px;
  }
  .fleet-toolbar a {
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 11px;
    white-space: normal;
    gap: 7px;
  }
  .fleet-toolbar a::after { flex: none; font-size: 15px; }
}
.fleet-composition { background: radial-gradient(ellipse at 50% 45%, #fff 0%, #f0f2f5 75%); }
.fleet-composition img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.equipment-card { transition: border-color .3s ease; }
.equipment-image {
  background: radial-gradient(ellipse at 50% 40%, #fff 0%, #f2f4f7 80%);
  display: block;
  flex: none;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  height: auto;
  aspect-ratio: 3 / 2;
  padding: 0;
}
.equipment-image img {
  display: block;
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  max-width: none;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.equipment-card { background: #f2f4f7; min-width: 0; }
.equipment-card:hover .equipment-image img { transform: none; }
/* Let the featured tractor grow with its column instead of cropping at 390px. */
.fleet-grid > .equipment-card:only-child {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.fleet-grid > .equipment-card:only-child .equipment-image {
  height: auto;
  aspect-ratio: 3 / 2;
  align-self: center;
}
.fleet-composition .fleet-render {
  position: absolute;
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  max-width: none;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  transform: none;
}
.fleet-composition:hover .fleet-render,
.fleet-composition:focus-visible .fleet-render { transform: none; }
.equipment-label h3 { line-height: 1.2; }

.sustainability-strip {
  display: flex;
  align-items: center;
  min-height: clamp(680px, 90svh, 940px);
  padding-block: clamp(80px, 7.5vw, 120px);
  background: #030a13;
}
.sustainability-strip::after { z-index: 1; opacity: .3; }
.sustainability-photo { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.sustainability-photo img { filter: saturate(.85) contrast(1.06); }
.sustainability-photo::after {
  background: linear-gradient(90deg, #030a13ed, #030a13b8 42%, #030a1360),
              linear-gradient(0deg, #030a13cc, transparent 60%, #030a1320);
}
.sustainability-strip .inner { width: 100%; z-index: 2; grid-template-columns: 1.3fr .7fr; gap: clamp(35px, 5.5vw, 85px); }
.sustainability-strip h2 { font-size: clamp(48px, 5.3vw, 82px); line-height: 1.08; letter-spacing: -.065em; max-width: 13ch; }
.sustainability-strip p { line-height: 1.85; color: #d0d6df; }
.sustainability-strip .text-link:hover { color: #ff5369; }

.news-grid { gap: clamp(22px, 2.5vw, 40px); }
.news-card { padding-top: 20px; }
.news-card .news-img { height: auto; aspect-ratio: 4 / 3; margin-bottom: 25px; }
.news-card h3 { font-size: clamp(23px, 1.8vw, 29px); font-weight: 500; line-height: 1.3; letter-spacing: -.035em; }
.news-card p { font-size: 14px; line-height: 1.8; }
.news-card .news-meta { margin-bottom: 16px; }

.contact-banner {
  padding-block: clamp(65px, 6.8vw, 105px);
  background: #162136;
  color: #fff;
}

.contact-banner h2 { max-width: 17ch; }
.contact-banner .button { border-color: #ffffff70; border-radius: 32px; padding: 17px 25px; background: transparent; min-width: 230px; }
.contact-banner .button:hover { border-color: var(--red); background: var(--red); }

main > .wrap.section > .section-heading .text-link,
.service-card .text-link,
.fleet-preview .text-link,
.sector-copy .text-link,
.sustainability-strip .text-link,
.statement .text-link,
.article-layout > .text-link {
  position: relative;
  border-bottom-color: currentColor;
  transition: color .25s ease;
}

main > .wrap.section > .section-heading .text-link::after,
.service-card .text-link::after,
.fleet-preview .text-link::after,
.sustainability-strip .text-link::after,
.statement .text-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.service-card .text-link b,
.fleet-preview .text-link b,
.sustainability-strip .text-link b,
.statement .text-link b,
main > .wrap.section > .section-heading .text-link b { transition: transform .3s ease; }

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-image img,
  .service-card:focus-within .service-image img,
  .news-card:hover .news-img img:not(.news-monogram),
  .news-card:focus-within .news-img img:not(.news-monogram) {
    transform: translate3d(0, var(--mis-photo-y, 0px), 0) scale(calc(var(--mis-photo-scale, 1) + .025));
    filter: saturate(1) contrast(1.035);
  }
  .sector-row:hover,
  .sector-row:focus-visible { border-top-color: #ffffff75; background: #ffffff03; }
  .sector-row:hover > b,
  .sector-row:focus-visible > b { transform: translate(2px, -2px); color: #ff5369; }
  .fleet-category-links a:hover::after,
  .fleet-category-links a:focus-visible::after { transform: translate(2px, -2px); }
  .fleet-composition:hover img,
  .fleet-composition:focus-visible img { transform: scale(1.025); }
  .equipment-card:hover { border-color: #aeb5c0; }
  main > .wrap.section > .section-heading .text-link:hover::after,
  .service-card .text-link:hover::after,
  .fleet-preview .text-link:hover::after,
  .sustainability-strip .text-link:hover::after,
  .statement .text-link:hover::after { transform: scaleX(1); }
  .service-card .text-link:hover b,
  .fleet-preview .text-link:hover b,
  .sustainability-strip .text-link:hover b,
  .statement .text-link:hover b,
  main > .wrap.section > .section-heading .text-link:hover b { transform: translate(2px, -2px); }
}

@media (max-width: 860px) {
  main > .wrap.section:not(.intermodal-feature):not(.hero) { padding-block: 72px; }
  .sector-feature { min-height: 790px; }
  .sector-copy { width: min(100%, 740px); padding: 70px var(--gutter) 90px; }
  .sector-copy h2 { max-width: 15ch; }
  .sustainability-strip .inner { grid-template-columns: 1fr; gap: 35px; }
  .sustainability-strip p { max-width: 45ch; }
}

@media (max-width: 600px) {
  main > .wrap.section:not(.intermodal-feature):not(.hero) { padding-block: 60px; }
  main > .intro.section { padding-block: 65px; gap: 27px; }
  .intro h1 { font-size: clamp(38px, 9.8vw, 52px); }
  .intro-bottom { margin-top: 28px; gap: 24px; }
  .intro-bottom p { font-size: 16px; }
  .page-hero { padding-block: 36px 48px; }
  .page-hero h1 { font-size: clamp(45px, 11vw, 62px); }
  .page-hero .lead { font-size: 19px; line-height: 1.7; }
  main > .wrap.section > .section-heading h2,
  .sector-copy h2,
  .fleet-preview h2,
  .sustainability-strip h2,
  .contact-banner h2,
  .split-content h2,
  .statement h2 { font-size: clamp(36px, 9vw, 48px); }
  .service-grid { gap: 40px; }
  .service-card .service-image { aspect-ratio: 4 / 3; margin-bottom: 23px; }
  .service-card h3 { font-size: 30px; }
  .service-card p { margin-top: 15px; }
  .sector-feature { min-height: 0; }
  .sector-copy { padding-block: 65px 85px; }
  .sector-feature .sector-photo::after { background: linear-gradient(90deg, #030a13e8, #030a13ae), linear-gradient(0deg, #030a13c7, transparent 65%); }
  .sector-feature .sector-photo .eyebrow { max-width: 85%; bottom: 23px; font-size: 8px; }
  .sector-copy h2 { margin-block: 24px 33px; }
  .sector-row { padding-block: 24px; gap: 15px; }
  .sector-row h3 { font-size: 24px; }
  .sector-row p { font-size: 13px; }
  .fleet-preview p { font-size: 15px; }
  .fleet-category-links { margin-top: 25px; }
  .sustainability-strip { min-height: 650px; padding-block: 80px; }
  .sustainability-strip h2 { max-width: 17ch; }
  .news-grid { gap: 37px; }
  .news-card h3 { font-size: 25px; }
  .news-card .news-img { aspect-ratio: 1.4; margin-bottom: 22px; }
  .contact-banner { padding-block: 60px; }
  .contact-banner .button { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-card .service-image img,
  .news-card .news-img img:not(.news-monogram),
  .sector-photo > img,
  .sector-photo > picture > img,
  .sustainability-photo img,
  .equipment-image img,
  .sector-row > b,
  .fleet-category-links a::after { transform: none !important; }
  .fleet-composition:hover img,
  .fleet-composition:focus-visible img { transform: none; }
  .equipment-image img { transition: none; }
}

@media print {
  .contact-banner { background: #fff; color: #000; }
  .service-card .service-image img,
  .news-card .news-img img:not(.news-monogram),
  .sector-photo > img,
  .sector-photo > picture > img,
  .sustainability-photo img { transform: none !important; filter: none; }
}
