@font-face {
  font-family: "RTC Sawasdee";
  src: url("fonts/Sawasdee-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Homepage cover. All five transparent PNGs are pixel-exact crops of
   pipe-materials-photo-v1.png, the source supplied for this composition. */
body.rr-home .rr-home-hero-reference,
body.rr-home .rr-home-hero-reference[data-rr-motion] {
  display: block;
  height: 100svh;
  min-height: 680px;
  padding: 0;
  background: linear-gradient(115deg, var(--rr-green-900), color-mix(in srgb, var(--rr-green-900) 65%, var(--rr-green-200)) 52%, color-mix(in srgb, var(--rr-green-900) 48%, var(--rr-green-200)));
  isolation: isolate;
}

body.rr-home .rr-home-hero-reference[data-rr-motion]::before {
  z-index: 1;
  inset: 12% 2% 0;
  background: url("rtc-logo.png") center calc(44% + 26px) / 96% auto no-repeat;
  opacity: .08;
  filter: brightness(0) invert(1);
  pointer-events: none;
  transform: none;
  will-change: auto;
}

body.rr-home .rr-home-hero-reference[data-rr-motion]::after {
  z-index: 5;
  top: auto;
  height: 170px;
  background: linear-gradient(0deg, var(--rr-green-900), transparent);
}

body.rr-home .rr-home-hero-reference .rr-home-grid {
  position: relative;
  z-index: auto;
  display: block;
  width: min(var(--rr-shell), calc(100% - 80px));
  height: 100%;
  margin-inline: auto;
}

/* CSS atmosphere is behind all imagery; only the decorative shapes are blurred. */
body.rr-redesign.rr-home .rr-home-hero-reference[data-rr-motion] .rr-home-grid { z-index: auto; }
body.rr-home .rr-home-hero-reference .rr-home-grid::after {
  content: none;
}
body.rr-home .rr-home-hero-reference .rr-hero-atmosphere {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
body.rr-home .rr-home-hero-reference .rr-hero-atmosphere > i {
  position: absolute;
  display: block;
  filter: blur(clamp(70px, 8vw, 150px));
  border-radius: 50%;
}
body.rr-home .rr-home-hero-reference .rr-hero-atmosphere > i:nth-child(1) {
  width: 72%; height: 105%; top: -38%; right: -12%;
  background: color-mix(in srgb, var(--rr-green-200) 44%, transparent);
  transform: rotate(-20deg);
}
body.rr-home .rr-home-hero-reference .rr-hero-atmosphere > i:nth-child(2) {
  width: 60%; height: 80%; bottom: -42%; left: -24%;
  background: var(--rr-green-900);
  transform: rotate(24deg);
}
body.rr-home .rr-home-hero-reference .rr-hero-atmosphere > i:nth-child(3) {
  width: 50%; height: 45%; top: 42%; left: 32%;
  background: color-mix(in srgb, var(--rr-green-500) 38%, transparent);
  transform: rotate(-32deg);
}
body.rr-home .rr-home-hero-reference + .rr-content-wrap {
  --rr-cover-fade-height: 170px;
  display: flow-root;
  background-image: linear-gradient(to bottom, var(--rr-green-900), color-mix(in srgb, var(--rr-green-900) 65%, var(--rr-white)) 25%, color-mix(in srgb, var(--rr-green-900) 18%, var(--rr-white)) 65%, var(--rr-white));
  background-size: 100% var(--rr-cover-fade-height);
  background-repeat: no-repeat;
}
body.rr-home .rr-home-hero-reference + .rr-content-wrap #productServices {
  margin-top: calc(72px + var(--rr-cover-fade-height));
}

body.rr-home .rr-home-hero-reference .rr-home-grid > .rr-hero-copy,
body.rr-home .rr-home-hero-reference[data-rr-motion] .rr-hero-copy {
  position: absolute;
  z-index: 6;
  top: 190px;
  left: 0;
  width: min(880px, 58%);
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left;
  transform: translate3d(0, var(--rr-hero-copy-y, 0px), 0) scale(var(--rr-hero-copy-scale, 1));
  transform-origin: left center;
}

body.rr-redesign.rr-home .rr-home-hero-reference h1 {
  max-width: none;
  margin: 0;
  font-family: "RTC Sawasdee", var(--rr-font);
  font-size: clamp(80px, 6.7vw, 128px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .85;
  white-space: normal;
}

body.rr-redesign.rr-home .rr-home-hero-reference h1 .rr-title-line {
  display: block;
  width: max-content;
  max-width: 100%;
  font-family: inherit;
  font-size: inherit;
  white-space: nowrap;
}

body.rr-redesign.rr-home .rr-home-hero-reference h1 .rr-title-first {
  display: flex;
  align-items: baseline;
  gap: .195em;
  background: none;
  color: var(--rr-white);
  -webkit-text-stroke: 2.5px currentColor;
  paint-order: stroke fill;
  transform: translateY(5px) scaleY(.92);
  transform-origin: left top;
}

body.rr-redesign.rr-home .rr-home-hero-reference h1 .rr-title-word { font-family: inherit; font-size: inherit; }
body.rr-redesign.rr-home .rr-home-hero-reference h1 .rr-title-word:last-child { color: var(--rr-white); transform: scaleX(1.08); transform-origin: left center; }

body.rr-redesign.rr-home .rr-home-hero-reference h1 .rr-title-first small {
  display: inline-block;
  margin-inline: -.04em;
  color: #e92243;
  -webkit-text-stroke: 1.5px #e92243;
  font-family: "RTC Sawasdee", var(--rr-font);
  font-size: .54em;
  line-height: 1;
  vertical-align: .08em;
}

body.rr-redesign.rr-home .rr-home-hero-reference h1 .rr-title-second {
  margin-left: .64em;
  padding-bottom: .09em;
  background: none;
  color: var(--rr-white);
  -webkit-text-stroke: 2.5px currentColor;
  paint-order: stroke fill;
  transform: translateY(-10px) scale(1.04,.9);
  transform-origin: left top;
}

body.rr-redesign.rr-home .rr-home-hero-reference .rr-lead {
  max-width: 800px;
  margin: 9px 0 0;
  color: var(--rr-white);
  font-size: clamp(26px, 2.1vw, 39px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  white-space: nowrap;
  transform: scaleX(1.035);
  transform-origin: left center;
}

body.rr-home .rr-home-hero-reference .rr-actions {
  justify-content: flex-start;
  gap: 16px;
  margin-top: 39px;
}

body.rr-redesign.rr-home .rr-home-hero-reference .rr-button {
  min-height: 64px;
  padding-inline: 32px;
  font-size: 20px;
  box-shadow: none;
}

body.rr-home .rr-home-hero-reference .rr-button-primary { min-width: 248px; }
body.rr-home .rr-home-hero-reference .rr-button-secondary { min-width: 220px; }

body.rr-redesign.rr-home .rr-home-hero-reference .rr-button-secondary {
  position: relative;
  color: var(--rr-green-900);
  isolation: isolate;
  overflow: hidden;
  border-color: var(--rr-white);
  background: var(--rr-white);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--rr-green-900) 12%, transparent);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
body.rr-redesign.rr-home .rr-home-hero-reference .rr-button-secondary::before {
  content: none;
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rr-white) 16%, transparent), transparent 65%);
  opacity: .75;
  transition: opacity 220ms ease;
}
body.rr-redesign.rr-home .rr-home-hero-reference .rr-button-secondary:is(:hover,:focus-visible) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--rr-green-900) 18%, transparent);
}
body.rr-redesign.rr-home .rr-home-hero-reference .rr-button-secondary:is(:hover,:focus-visible)::before { opacity: 1; }
body.rr-redesign.rr-home .rr-home-hero-reference .rr-button-secondary:active { transform: translateY(0); }
body.rr-redesign.rr-home .rr-home-hero-reference .rr-button-secondary:focus-visible { outline: 2px solid var(--rr-white); outline-offset: 4px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-button-secondary { background: var(--rr-white); }
}
@media (prefers-reduced-motion: reduce) {
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-button-secondary,
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-button-secondary::before { transition: none; }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-button-secondary:is(:hover,:focus-visible),
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-button-secondary:is(:hover,:focus-visible)::before { transform: none; }
}

body.rr-home .rr-home-hero-reference .rr-hero-pipes {
  position: absolute;
  z-index: 2;
  top: 72px;
  right: -45%;
  width: 84%;
  height: 100%;
  pointer-events: none;
}

body.rr-home .rr-home-hero-reference .rr-hero-pipe {
  position: absolute;
  display: block;
  width: 25%;
  height: 100%;
  object-fit: fill;
  transform: translate3d(var(--rr-pipe-mouse-x, 0px), var(--rr-pipe-mouse-y, 0px), 0) rotate(calc(39deg + var(--rr-pipe-mouse-turn, 0deg))) scale(1);
  transform-origin: top center;
}

body.rr-home .rr-home-hero-reference .rr-hero-pipe-carbon { z-index: 3; top: 31%; left: 2%; }
body.rr-home .rr-home-hero-reference .rr-hero-pipe-galvanize { z-index: 1; top: 11.5%; left: 26.5%; }
body.rr-home .rr-home-hero-reference .rr-hero-pipe-blue { z-index: 2; top: 31%; left: 44.5%; }
body.rr-home .rr-home-hero-reference .rr-hero-pipe-stainless { z-index: 4; top: 39%; left: 22.5%; }
body.rr-home .rr-home-hero-reference .rr-hero-pipe-ppr { z-index: 5; top: 64%; left: 32%; }

/* Independent translate keeps the entrance aligned with the 39-degree pipe
   axis without competing with the pointer-driven transform. */
@keyframes rr-pipe-axis-entry {
  from { translate: calc(var(--rr-pipe-entry-distance) * -.62932) calc(var(--rr-pipe-entry-distance) * .77715); }
  to { translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  body.rr-home .rr-home-hero-reference .rr-hero-pipe {
    --rr-pipe-entry-distance: 100svh;
    animation: rr-pipe-axis-entry 1150ms cubic-bezier(.16,1,.3,1) var(--rr-pipe-entry-delay, 100ms) backwards;
  }
  body.rr-home .rr-home-hero-reference .rr-hero-pipe-galvanize { --rr-pipe-entry-delay: 100ms; }
  body.rr-home .rr-home-hero-reference .rr-hero-pipe-carbon { --rr-pipe-entry-delay: 170ms; }
  body.rr-home .rr-home-hero-reference .rr-hero-pipe-blue { --rr-pipe-entry-delay: 240ms; }
  body.rr-home .rr-home-hero-reference .rr-hero-pipe-stainless { --rr-pipe-entry-delay: 310ms; }
  body.rr-home .rr-home-hero-reference .rr-hero-pipe-ppr { --rr-pipe-entry-delay: 380ms; }
}

@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  body.rr-home .rr-home-hero-reference .rr-hero-pipe {
    --rr-pipe-entry-distance: 55svh;
    animation-duration: 950ms;
  }
}

body.rr-redesign.rr-home .rr-home-hero-reference .rr-hero-bottom {
  position: absolute;
  z-index: 7;
  right: 24px;
  bottom: 8px;
  left: 24px;
  margin: 0;
  color: var(--rr-white);
  font-size: clamp(22px, 1.85vw, 35px);
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
}

@media (min-width: 1500px) {
  body.rr-home .rr-home-hero-reference .rr-home-grid > .rr-hero-copy,
  body.rr-home .rr-home-hero-reference[data-rr-motion] .rr-hero-copy { left: -30px; top: 202px; }
  body.rr-home .rr-home-hero-reference .rr-actions { margin-left: 30px; }
}

@media (max-width: 1100px) {
  body.rr-home .rr-home-hero-reference .rr-home-grid > .rr-hero-copy,
  body.rr-home .rr-home-hero-reference[data-rr-motion] .rr-hero-copy { left: 0; width: 65%; }
  body.rr-redesign.rr-home .rr-home-hero-reference h1 { font-size: clamp(65px, 7.2vw, 90px); }
  body.rr-home .rr-home-hero-reference .rr-hero-pipes { right: -24%; width: 88%; }
}

@media (min-width: 701px) and (max-width: 1400px) {
  body.rr-home .rr-home-hero-reference .rr-hero-pipes { right: -24%; width: 82%; }
}

@media (max-width: 700px) {
  body.rr-home .rr-home-hero-reference,
  body.rr-home .rr-home-hero-reference[data-rr-motion] { height: auto; min-height: 800px; padding-top: 120px; }
  body.rr-home .rr-home-hero-reference .rr-home-grid { width: calc(100% - 36px); min-height: 640px; }
  body.rr-home .rr-home-hero-reference .rr-home-grid > .rr-hero-copy,
  body.rr-home .rr-home-hero-reference[data-rr-motion] .rr-hero-copy { top: 0; left: 0; width: 100%; }
  body.rr-redesign.rr-home .rr-home-hero-reference h1 { font-size: clamp(51px, 11vw, 70px); line-height: 1; }
  body.rr-redesign.rr-home .rr-home-hero-reference h1 .rr-title-first { white-space: normal; }
  body.rr-redesign.rr-home .rr-home-hero-reference h1 .rr-title-second { margin-left: .35em; }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-lead { margin-top: 10px; font-size: clamp(18px, 4.6vw, 24px); white-space: normal; }
  body.rr-home .rr-home-hero-reference .rr-actions { gap: 10px; margin-top: 20px; }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-button { width: auto; min-width: 0; min-height: 48px; padding-inline: 14px; font-size: 16px; }
  body.rr-redesign.rr-home .rr-home-hero-reference h1 .rr-title-line { -webkit-text-stroke-width: .75px; }
  body.rr-redesign.rr-home .rr-home-hero-reference h1 .rr-title-first small { -webkit-text-stroke-width: .5px; }
  body.rr-home .rr-home-hero-reference .rr-hero-pipes { top: 35%; right: -45%; width: 135%; height: 63%; }
  body.rr-home .rr-home-hero-reference .rr-hero-pipe { width: 29%; height: 115%; }
  body.rr-home .rr-home-hero-reference[data-rr-motion]::after { height: 220px; background: linear-gradient(0deg, var(--rr-green-900), transparent); }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-hero-bottom { right: 18px; bottom: 94px; left: 18px; font-size: 18px; }
}


@media (prefers-reduced-motion: reduce) {
  body.rr-home .rr-home-hero-reference .rr-hero-pipe { transform: rotate(39deg) scale(1); }
  body.rr-home .rr-home-hero-reference[data-rr-motion] .rr-hero-copy { opacity: 1; transform: none; }
}

/* Compact screens use content flow instead of overlapping absolute layers. */
@media (max-width: 1100px) {
  body.rr-redesign.rr-home .rr-home-hero-reference[data-rr-motion] {
    height: auto; min-height: 100svh; padding: 132px 0 36px;
  }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-home-grid {
    display: flex; flex-direction: column; gap: 24px;
    width: calc(100% - 48px); height: auto; min-height: 0;
  }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-home-grid > .rr-hero-copy,
  body.rr-redesign.rr-home .rr-home-hero-reference[data-rr-motion] .rr-hero-copy {
    position: relative; top: auto; left: auto; width: 100%; max-width: 640px;
    transform: none; opacity: 1;
  }
  body.rr-redesign.rr-home .rr-home-hero-reference h1 { font-size: var(--rr-font-display); line-height: 1; }
  body.rr-redesign.rr-home .rr-home-hero-reference h1 .rr-title-line { max-width: 100%; }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-lead {
    font-size: var(--rr-font-lead); white-space: normal; transform: none;
  }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-actions { gap: 16px; margin: 24px 0 0; }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-button {
    flex: 0 1 auto; min-width: 0; max-width: 100%; min-height: 56px;
    padding: 12px 24px; font-size: var(--rr-font-body); text-align: center;
  }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-hero-pipes {
    position: relative; top: auto; right: auto; width: min(100%,720px);
    height: min(55vw,460px); min-height: 280px; margin: 0 auto;
    overflow: hidden; transform: none;
    -webkit-mask-image: linear-gradient(#000 75%,transparent);
    mask-image: linear-gradient(#000 75%,transparent);
  }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-hero-pipe { width: 25%; height: 115%; }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-hero-pipe-carbon { left:20%; }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-hero-pipe-galvanize { left:44.5%; }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-hero-pipe-blue { left:62.5%; }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-hero-pipe-stainless { left:40.5%; }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-hero-pipe-ppr { left:50%; }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-hero-bottom {
    position: relative; right: auto; bottom: auto; left: auto; margin: 0 24px;
    font-size: var(--rr-font-body); line-height: 1.5;
  }
  body.rr-redesign.rr-home .rr-home-hero-reference[data-rr-motion]::after { height: 90px; }
}
@media (max-width: 420px) {
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-home-grid { width: calc(100% - 36px); }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-actions { flex-direction: column; align-items: stretch; }
  body.rr-redesign.rr-home .rr-home-hero-reference .rr-button { width: 100%; }
}

/* A pipe's diameter and length must scale together at every breakpoint. */
body.rr-redesign.rr-home .rr-home-hero-reference .rr-hero-pipes .rr-hero-pipe {
  height:auto; object-fit:contain;
  -webkit-mask-image:linear-gradient(#000 75%,transparent);
  mask-image:linear-gradient(#000 75%,transparent);
}
