
/**
 * Horizon Canvas — assets/css/home.css.
 *
 * Base shell, shared navigation/footer, and homepage visual structures. Later page styles
 * provide their layout rules; design.css is the final authority for editable type and spacing.
 *
 * @package Horizon_Canvas
 * @author  Dwayne Silvera
 * @since   1.0.0
 */
body.rmsih-body {
  margin: 0 !important;
  background: var(--rms-color-ink) !important;
}
#rmsih {
  position: relative;
  --ink: var(--rms-color-ink);
  --yellow: var(--rms-color-accent);
  --paper: var(--rms-color-paper);
  background: var(--ink);
  color: var(--rms-color-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow: clip;
}
#rmsih * {
  box-sizing: border-box;
}
#rmsih h1:not(:where(.original-slider *)),
#rmsih h2:not(:where(.original-slider *)),
#rmsih h3:not(:where(.original-slider *)),
#rmsih p:not(:where(.original-slider *)) {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  text-align: left;
}
#rmsih h1:not(:where(.original-slider *)),
#rmsih h2:not(:where(.original-slider *)),
#rmsih h3:not(:where(.original-slider *)) {
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-transform: none;
}
#rmsih p:not(:where(.original-slider *)) {
  font-size: inherit;
  line-height: 1.6 !important;
  font-weight: 400 !important;
}
#rmsih a:not(:where(.original-slider *)) {
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
}
#rmsih button:not(:where(.original-slider *)) {
  font: inherit;
  cursor: pointer;
  border: 0;
  box-shadow: none;
  text-shadow: none;
  border-radius: 0;
}
#rmsih img:not(:where(.original-slider *)) {
  display: block;
  max-width: 100%;
  border: 0;
  border-radius: 0;
}
#rmsih .wrap {
  width: min(1320px, 90%);
  margin-inline: auto;
}
#rmsih .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 700 !important;
  color: var(--yellow);
  margin-bottom: 25px;
}
#rmsih a:not(:where(.original-slider *)):focus-visible,
#rmsih button:not(:where(.original-slider *)):focus-visible {
  outline: 3px solid #31b9ff;
  outline-offset: 6px;
}
#rmsih .skip {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 15px;
  background: var(--yellow);
  color: var(--ink);
  z-index: 100;
}
#rmsih .skip:focus {
  top: 10px;
}
/*Shared header and navigation. Keep menu selectors aligned with navigation.js.
 */
#rmsih .site-header {
  height: 92px;
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff30;
}
#rmsih .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.13em;
  font-weight: 700;
}
#rmsih .brand-mark {
  font-size: 36px;
  letter-spacing: -0.07em;
  font-weight: 900;
  color: var(--yellow);
}
#rmsih .brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 0.12em;
  margin-top: 5px;
  opacity: 0.65;
}
#rmsih nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 700;
}
#rmsih .pill {
  background: var(--yellow);
  color: var(--ink);
  padding: 13px 23px;
  border-radius: 50px;
}
#rmsih .pill span {
  margin-left: 20px;
}
#rmsih .menu-toggle {
  display: none;
}
#rmsih .hero {
  position: relative;
  min-height: 760px;
  height: 100svh;
  max-height: 1200px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
#rmsih .hero-photo,
#rmsih .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
  object-position: center;
}
#rmsih .hero-photo {
  transform: scale(1.06);
  will-change: transform;
}
#rmsih .hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, #04111be8, #04111b70 65%, #04111b25),
    linear-gradient(0deg, #07131bba, transparent 45%);
}
#rmsih h1:not(:where(.original-slider *)) {
  font-size: clamp(62px, 7.8vw, 124px);
  max-width: 1000px;
  text-wrap: balance;
}
#rmsih .hero-copy {
  padding-top: 80px;
}
#rmsih .intro {
  max-width: 520px;
  font-size: clamp(17px, 1.6vw, 23px);
  margin: 30px 0 35px;
}
#rmsih .cta {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  background: var(--yellow);
  color: var(--ink);
  padding: 17px 25px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.25s,
    background 0.25s;
}
#rmsih .cta:hover {
  transform: translateY(-3px);
  background: var(--rms-color-white);
}
#rmsih .hero-bottom {
  position: absolute;
  bottom: 30px;
  left: 5%;
  width: 90%;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #ffffffa0;
}
#rmsih .scroll-cue {
  position: absolute;
  right: 4%;
  bottom: 130px;
  display: flex;
  gap: 20px;
  align-items: center;
  writing-mode: vertical-rl;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
/*Illustrative roof layers. Class names and custom properties are consumed by home.js.
 */
#rmsih .systems {
  padding-block: 140px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 6%;
  align-items: center;
  min-height: 760px;
}
#rmsih h2:not(:where(.original-slider *)) {
  font-size: clamp(42px, 5vw, 78px);
}
#rmsih .systems-copy > p:not(.eyebrow) {
  max-width: 420px;
  margin-top: 25px;
  color: #c2cbd1;
}
#rmsih .systems-copy p.small {
  font-size: 12px;
  color: #8c9ba4;
}
#rmsih .text-button {
  display: inline-flex;
  background: none;
  color: var(--rms-color-white);
  border-bottom: 1px solid var(--yellow);
  padding: 12px 0;
  margin-top: 20px;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}
#rmsih .text-button span {
  color: var(--yellow);
}
#rmsih .roof-demo {
  position: relative;
  height: 440px;
  perspective: 1100px;
}
#rmsih .roof-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(55deg) rotateZ(-24deg) scale(0.88);
}
#rmsih .roof-layer {
  position: absolute;
  left: 5%;
  top: 17%;
  width: 90%;
  height: 65%;
  box-shadow: 0 32px 45px #0005;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#rmsih .roof-layer span {
  position: absolute;
  bottom: 12px;
  left: 18px;
  color: var(--rms-color-white);
  text-shadow: 0 1px 4px #000;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
#rmsih .membrane {
  background: linear-gradient(130deg, #606e76, #a3b0b6 40%, #435059);
  border: 1px solid #c4d0d4;
  transform: translateZ(70px);
  z-index: 3;
}
#rmsih .insulation {
  background: repeating-linear-gradient(35deg, #aa9260, #aa9260 2px, #b69e6b 3px, #c5ad78 5px);
  border-bottom: 18px solid #8c784d;
  transform: translateZ(20px);
  z-index: 2;
}
#rmsih .deck {
  background: repeating-linear-gradient(90deg, #34424d 0, #a0b0b8 12px, #697c89 23px, #30434f 30px);
  border-bottom: 6px solid #263741;
  transform: translateZ(-30px);
  z-index: 1;
}
#rmsih .roof-demo.expanded .membrane {
  transform: translateZ(150px);
}
#rmsih .roof-demo.expanded .insulation {
  transform: translateZ(0);
}
#rmsih .roof-demo.expanded .deck {
  transform: translateZ(-120px);
}
#rmsih .diagram-note {
  position: absolute;
  bottom: -10px;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: #81929e;
}
#rmsih .statement {
  overflow: hidden;
  padding: 10px 0 35px;
}
#rmsih .statement span {
  display: block;
  white-space: nowrap;
  font-size: clamp(85px, 14.8vw, 240px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.065em;
  color: var(--yellow);
}
/*Project photography and scroll scene sizing.
 */
#rmsih .project-scroll {
  height: 175vh;
  min-height: 1100px;
}
#rmsih .project-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#rmsih .project-image {
  position: relative;
  width: 100%;
  height: 100%;
  clip-path: inset(7% 7% round 16px);
  overflow: hidden;
  isolation: isolate;
}
#rmsih .project-image > img,
#rmsih .project-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
#rmsih .project-shade {
  z-index: -1;
  background: linear-gradient(0deg, #03111df0, transparent 85%);
}
#rmsih .project-copy {
  position: absolute;
  bottom: 13%;
  left: 11%;
  max-width: 950px;
}
#rmsih .project-copy h2 {
  font-size: clamp(44px, 6vw, 94px);
}
#rmsih .cta.light {
  background: var(--rms-color-white);
  margin-top: 30px;
}
#rmsih .project-number {
  position: absolute;
  right: 11%;
  top: 12%;
  color: var(--yellow);
  font-size: 100px;
  letter-spacing: -0.09em;
  font-weight: 700;
}
#rmsih .services {
  background: var(--paper);
  color: var(--ink);
  padding: 120px 0;
}
#rmsih .services .eyebrow {
  color: #596974;
}
#rmsih .section-heading {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: 10%;
  margin-bottom: 60px;
}
#rmsih .section-heading > p {
  max-width: 420px;
  color: #4b5a63;
}
#rmsih .service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 35px;
}
/*Homepage expertise cards and their motion targets.
 */
#rmsih .service-card {
  position: relative;
  display: block;
  height: 490px;
  overflow: hidden;
  isolation: isolate;
  color: var(--rms-color-white);
  box-shadow: 0 18px 35px #07131b18;
}
#rmsih .service-card:nth-child(2) {
  margin-top: 55px;
}
#rmsih .service-card:nth-child(3) {
  margin-top: 110px;
}
#rmsih .service-card:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #04111bf0, transparent 85%);
}
#rmsih .service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: -2;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#rmsih .card-copy {
  position: absolute;
  bottom: 30px;
  left: 26px;
  right: 26px;
}
#rmsih .card-no {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#rmsih h3:not(:where(.original-slider *)) {
  font-size: 35px;
  margin-top: 15px;
}
#rmsih .arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 24px;
}
#rmsih .about {
  padding-block: 130px;
}
#rmsih .about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10%;
  align-items: center;
}
#rmsih em {
  font-style: normal;
  color: var(--yellow);
}
#rmsih .about-grid p {
  margin-bottom: 20px;
  color: #c2cbd1;
}
#rmsih .secondary {
  display: flex;
  width: fit-content;
  color: #c2cbd1;
}
#rmsih .contact {
  padding: 95px 0;
  background: var(--yellow);
  color: var(--ink);
}
#rmsih .contact .eyebrow {
  color: #39412c;
}
#rmsih .contact h2 {
  font-size: clamp(48px, 7.5vw, 110px);
  max-width: 1100px;
}
#rmsih .cta.dark {
  background: var(--ink);
  color: var(--rms-color-white);
  margin-top: 35px;
}
/*Shared footer layout. Business wording is rendered by parts/site-footer.php.
 */
#rmsih .site-footer {
  padding-block: 45px;
  display: flex;
  gap: 35px;
  align-items: center;
  justify-content: space-between;
}
#rmsih .footer-brand {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.06em;
}
#rmsih .footer-brand span {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
}
#rmsih .site-footer > div {
  display: flex;
  gap: 25px;
  font-size: 12px;
}
#rmsih .site-footer small {
  font-size: 10px;
  color: #93a0a8;
}
#rmsih.motion .reveal {
  opacity: 0;
  transform: translateY(45px);
  transition:
    opacity 0.8s,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#rmsih.motion .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
#rmsih.motion .service-card:nth-child(2) {
  transition-delay: 0.1s;
}
#rmsih.motion .service-card:nth-child(3) {
  transition-delay: 0.2s;
}
@media (max-width: 800px) {
  #rmsih .site-header {
    height: 75px;
  }
  #rmsih .brand-mark {
    font-size: 30px;
  }
  #rmsih .menu-toggle {
    display: block;
    color: white;
    background: none;
    padding: 12px;
  }
  #rmsih nav {
    display: none;
    position: absolute;
    top: 75px;
    right: 0;
    left: 0;
    padding: 25px;
    background: var(--rms-color-ink);
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
  }
  #rmsih nav.open {
    display: flex;
  }
  #rmsih .hero {
    min-height: 700px;
    max-height: none;
  }
  #rmsih h1:not(:where(.original-slider *)) {
    font-size: clamp(52px, 10vw, 78px);
    max-width: 650px;
  }
  #rmsih .hero-copy {
    padding-top: 20px;
  }
  #rmsih .hero-bottom {
    display: block;
    font-size: 10px;
  }
  #rmsih .hero-bottom span {
    display: block;
    margin-top: 5px;
  }
  #rmsih .scroll-cue {
    display: none;
  }
  #rmsih .systems {
    grid-template-columns: 1fr;
    padding-block: 80px;
    gap: 35px;
  }
  #rmsih .roof-demo {
    height: 330px;
    max-width: 550px;
    width: 100%;
    margin: auto;
  }
  #rmsih .roof-scene {
    transform: rotateX(55deg) rotateZ(-24deg) scale(0.75);
  }
  #rmsih .project-scroll {
    height: auto;
    min-height: 0;
  }
  #rmsih .project-sticky {
    position: relative;
    height: 650px;
  }
  #rmsih .project-image {
    clip-path: none;
  }
  #rmsih .project-copy {
    left: 5%;
    right: 5%;
    bottom: 10%;
  }
  #rmsih .project-number {
    font-size: 70px;
    right: 6%;
  }
  #rmsih .services {
    padding: 75px 0;
  }
  #rmsih .section-heading,
  #rmsih .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  #rmsih .service-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  #rmsih .service-card {
    height: 420px;
    margin-top: 0 !important;
  }
  #rmsih .about {
    padding-block: 80px;
  }
  #rmsih .contact {
    padding: 65px 0;
  }
  #rmsih .site-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  #rmsih .site-footer small {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  #rmsih *,
  #rmsih *:before,
  #rmsih *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  #rmsih.motion .reveal {
    opacity: 1;
    transform: none;
  }
  #rmsih .project-scroll {
    height: auto;
    min-height: 0;
  }
  #rmsih .project-sticky {
    position: relative;
    height: 750px;
  }
  #rmsih .project-image {
    clip-path: none !important;
  }
  #rmsih .hero-photo {
    transform: none !important;
  }
}

#rmsih .original-logo {
  width: 156px;
  height: auto;
  background: white;
  padding: 8px;
  border-radius: 2px;
}

/* contained statement and scroll-driven mobile project reveal. */
#rmsih .statement {
  padding: 30px 5%;
}
#rmsih .statement span {
  font-size: clamp(24px, 7.5vw, 140px);
  text-align: center;
  white-space: normal;
}
@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  #rmsih.motion .project-scroll {
    height: 170svh;
    min-height: 0;
  }
  #rmsih.motion .project-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 0;
  }
  #rmsih.motion .project-image {
    clip-path: inset(6% 6% round 16px);
  }
  #rmsih.motion .project-copy {
    left: 10%;
    right: 10%;
    bottom: 12%;
  }
  #rmsih.motion .project-copy h2 {
    font-size: clamp(34px, 9.5vw, 44px);
  }
  #rmsih.motion .project-copy .eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  #rmsih.motion .project-copy .cta {
    padding: 15px 18px;
    gap: 20px;
    max-width: 100%;
    font-size: 13px;
  }
  #rmsih.motion .project-number {
    right: 10%;
    top: 10%;
    font-size: 64px;
  }
}

/* expertise responds to scroll in both directions; captions stay clear. */
#rmsih .services .eyebrow {
  color: #344b59;
  font-size: 12px;
  letter-spacing: 0.16em;
}
#rmsih .section-heading > p {
  color: #263e4b;
  font-size: 18px;
  max-width: 460px;
}
#rmsih .service-slot {
  min-width: 0;
  align-self: start;
}
#rmsih .service-slot:nth-child(2) {
  margin-top: 55px;
}
#rmsih .service-slot:nth-child(3) {
  margin-top: 110px;
}
#rmsih .service-card {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 520px;
  margin: 0 !important;
  transform-origin: center center;
  transition: none;
  box-shadow: 0 20px 35px #07131b20;
  background: #0b1c27;
  color: var(--rms-color-white) !important;
}
#rmsih .service-card:after {
  display: none;
}
#rmsih .service-photo {
  position: relative;
  height: 320px;
  flex-shrink: 0;
  overflow: hidden;
}
#rmsih .service-photo img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(var(--service-image-scale, 1) + var(--hover-zoom, 0)));
  transition: none;
}
#rmsih .service-card:hover {
  --hover-zoom: 0.025;
}
#rmsih .card-copy {
  position: relative;
  inset: auto;
  padding: 25px 26px 65px;
  flex: 1;
  background: #0b1c27;
  color: white;
}
#rmsih .card-no {
  display: block;
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--rms-color-accent);
}
#rmsih .card-copy h3 {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-top: 12px;
  color: var(--rms-color-white);
}
#rmsih .card-copy p.card-desc {
  font-size: 15px;
  line-height: 1.5 !important;
  color: #e0e8ed;
  margin-top: 12px;
  max-width: 100%;
}
#rmsih .card-copy .arrow {
  right: 24px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  font-size: 22px;
}
@media (max-width: 800px) {
  #rmsih .service-slot:nth-child(n) {
    margin-top: 0;
  }
  #rmsih .service-grid {
    gap: 30px;
    padding-bottom: 0;
  }
  #rmsih .section-heading {
    margin-bottom: 30px;
  }
  #rmsih .section-heading > p {
    font-size: 17px;
    line-height: 1.65 !important;
  }
  #rmsih .service-card {
    height: auto;
    min-height: 0;
  }
  #rmsih .service-photo {
    height: 260px;
  }
  #rmsih .card-copy {
    padding: 23px 22px 64px;
  }
  #rmsih .card-copy h3 {
    font-size: 30px;
  }
  #rmsih .card-copy p.card-desc {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #rmsih .service-card,
  #rmsih .service-photo img {
    transform: none !important;
  }
}

/* repeatable, scroll-linked reveals, with a readable central plateau. */
#rmsih.scroll-motion .reveal,
#rmsih.scroll-motion .section-heading {
  transition: none;
  will-change: transform, opacity;
}
#rmsih .scroll-reveal-slot {
  min-width: 0;
}
#rmsih .systems > .scroll-reveal-slot {
  align-self: center;
}
#rmsih .service-card {
  will-change: transform, opacity;
}
#rmsih.scroll-motion .roof-layer {
  transition: none;
}
#rmsih.scroll-motion .roof-demo .membrane {
  transform: translateZ(calc(70px + 80px * var(--roof-spread, 0)));
}
#rmsih.scroll-motion .roof-demo .insulation {
  transform: translateZ(calc(20px - 20px * var(--roof-spread, 0)));
}
#rmsih.scroll-motion .roof-demo .deck {
  transform: translateZ(calc(-30px - 90px * var(--roof-spread, 0)));
}
#rmsih .statement span {
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  #rmsih.scroll-motion .reveal,
  #rmsih.scroll-motion .section-heading,
  #rmsih .service-card {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }
  #rmsih .statement span {
    transform: none !important;
    will-change: auto;
  }
}

/* the roof opens at the viewport centre and closes on either side. */
#rmsih.scroll-motion .roof-scene {
  transform: rotateX(calc(59deg - 4deg * var(--roof-focus, 0)))
    rotateZ(calc(-28deg + 4deg * var(--roof-focus, 0)))
    scale(calc(0.83 + 0.05 * var(--roof-focus, 0)));
  will-change: transform;
}
@media (max-width: 800px) {
  #rmsih.scroll-motion .roof-scene {
    transform: rotateX(calc(59deg - 4deg * var(--roof-focus, 0)))
      rotateZ(calc(-28deg + 4deg * var(--roof-focus, 0)))
      scale(calc(0.7 + 0.05 * var(--roof-focus, 0)));
  }
}
@media (prefers-reduced-motion: reduce) {
  #rmsih.scroll-motion .roof-scene {
    transform: rotateX(55deg) rotateZ(-24deg) scale(0.88);
    will-change: auto;
  }
}
@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
  #rmsih.scroll-motion .roof-scene {
    transform: rotateX(55deg) rotateZ(-24deg) scale(0.75);
  }
}

/* distinct, scroll-driven atmosphere for the introduction and final invitation. */
#rmsih .about {
  position: relative;
  isolation: isolate;
}
#rmsih .about-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.6;
}
#rmsih .about-atmosphere:before {
  content: '';
  position: absolute;
  width: 650px;
  height: 650px;
  right: -200px;
  top: -180px;
  border: 1px solid #fedd1138;
  border-radius: 50%;
  box-shadow:
    0 0 0 80px #fedd1107,
    0 0 0 160px #fedd1104;
  transform: translateY(calc(70px - 140px * var(--scene-travel, 0.5)))
    rotate(calc(25deg * var(--scene-travel, 0.5)));
}
#rmsih .about-atmosphere > span {
  position: absolute;
  left: 0;
  bottom: 4%;
  font-size: clamp(130px, 24vw, 360px);
  line-height: 0.8;
  font-weight: 900;
  letter-spacing: -0.09em;
  color: transparent;
  -webkit-text-stroke: 1px #96b2c02b;
  transform: translateX(calc(-3% + 6% * var(--scene-travel, 0.5)));
}
#rmsih .immersive-line {
  display: block;
  transform-origin: left center;
}
#rmsih .about h2 .immersive-line {
  transform: translateX(calc(-18px + 18px * var(--scene-focus, 1)));
}
#rmsih .about h2 .immersive-line:nth-child(2) {
  transform: translateX(calc(26px - 26px * var(--scene-focus, 1)));
}
#rmsih .about h2 .immersive-line:nth-child(3) {
  transform: translateX(calc(-36px + 36px * var(--scene-focus, 1)));
}
#rmsih .about h2 em {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}
#rmsih .about h2 em:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(var(--scene-focus, 1));
  transform-origin: left;
}
#rmsih .about-grid > div:after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--rms-color-accent), #fedd1100);
  margin-top: 28px;
  transform: scaleX(var(--scene-focus, 1));
  transform-origin: left;
}
#rmsih .contact {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  overflow: hidden;
}
#rmsih .contact:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--yellow);
  clip-path: inset(
    calc(3% - 3% * var(--scene-focus, 1)) calc(4% - 4% * var(--scene-focus, 1)) round
      calc(28px - 28px * var(--scene-focus, 1))
  );
}
#rmsih .contact:after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -180px;
  top: -180px;
  width: 560px;
  height: 560px;
  border: 1px solid #07131b25;
  border-radius: 50%;
  box-shadow:
    0 0 0 65px #07131b09,
    0 0 0 130px #07131b06;
  pointer-events: none;
  transform: translateY(calc(100px - 200px * var(--scene-travel, 0.5)));
}
#rmsih .contact h2 {
  font-size: clamp(44px, 7.5vw, 110px);
}
#rmsih .contact h2 .immersive-line:first-child {
  transform: translateX(calc(-20px + 20px * var(--scene-focus, 1)));
}
#rmsih .contact h2 .immersive-line:last-child {
  transform: translateX(calc(25px - 25px * var(--scene-focus, 1)));
}
#rmsih .contact .cta {
  transform: translateY(calc(16px - 16px * var(--scene-focus, 1)))
    scale(calc(0.97 + 0.03 * var(--scene-focus, 1)));
  transform-origin: left center;
}
#rmsih .cta > span {
  display: inline-block;
  transition: transform 0.2s;
}
#rmsih .cta:hover > span,
#rmsih .cta:focus-visible > span {
  transform: translate(3px, -3px);
}
#rmsih .site-footer {
  position: relative;
}
#rmsih .site-footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fedd1155;
  transform: scaleX(var(--scene-focus, 1));
  transform-origin: left;
}
#rmsih.scroll-motion .reveal:focus-within,
#rmsih.scroll-motion .service-card:focus-visible {
  opacity: 1 !important;
  transform: none !important;
}
@media (max-width: 800px) {
  #rmsih .about-atmosphere:before {
    width: 380px;
    height: 380px;
    right: -220px;
    top: 30px;
  }
  #rmsih .contact:after {
    width: 360px;
    height: 360px;
    right: -220px;
    top: -70px;
  }
  #rmsih .contact h2 {
    font-size: clamp(38px, 9vw, 64px);
    overflow-wrap: normal;
  }
  #rmsih .contact .wrap {
    width: 84%;
  }
  #rmsih .about h2 .immersive-line:nth-child(n),
  #rmsih .contact h2 .immersive-line:nth-child(n) {
    transform: translateX(calc(10px - 10px * var(--scene-focus, 1)));
  }
}
@media (prefers-reduced-motion: reduce) {
  #rmsih .immersive-line,
  #rmsih .contact .cta,
  #rmsih .about-atmosphere > span,
  #rmsih .about-atmosphere:before,
  #rmsih .contact:after {
    transform: none !important;
  }
  #rmsih .contact:before {
    clip-path: none;
  }
}

/* a connected journey, with photography and engineering detail as the focus. */
#rmsih [id] {
  scroll-margin-top: 35px;
}
#rmsih .reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  pointer-events: none;
  background: #07131b22;
}
#rmsih .reading-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left;
}
/*Pinned chapter navigation and accessible active-state styling.
 */
#rmsih .chapter-guide {
  position: fixed;
  inset: auto auto 20px 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 6px;
  border: 1px solid #ffffff26;
  border-radius: 50px;
  background: #07131bf2;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px #0004;
}
#rmsih .chapter-guide a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  min-height: 44px;
  border-radius: 40px;
  color: #dce6ec;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}
#rmsih .chapter-guide a > span {
  color: #879aa6;
  font-size: 9px;
}
#rmsih .chapter-guide a[aria-current],
#rmsih .chapter-guide a:hover {
  background: var(--yellow);
  color: var(--ink);
}
#rmsih .chapter-guide a[aria-current] > span {
  color: #34414a;
}
#rmsih .site-footer {
  padding-bottom: 115px;
}
#rmsih .hero-frame {
  position: absolute;
  inset: 115px 3% 80px;
  z-index: -1;
  border-right: 1px solid #ffffff18;
  pointer-events: none;
}
#rmsih .hero-frame:before,
#rmsih .hero-frame:after {
  content: '';
  position: absolute;
  right: 0;
  width: 38px;
  height: 1px;
  background: var(--yellow);
}
#rmsih .hero-frame:before {
  top: 0;
}
#rmsih .hero-frame:after {
  bottom: 0;
}
#rmsih .hero-frame > span {
  position: absolute;
  right: 14px;
  top: 18px;
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #ffffff8c;
}
#rmsih .hero-copy {
  will-change: transform;
}
#rmsih .roof-demo {
  isolation: isolate;
}
#rmsih .roof-blueprint {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid #89adbf20;
  border-radius: 16px;
  background-image:
    linear-gradient(#89adbf0d 1px, transparent 1px),
    linear-gradient(90deg, #89adbf0d 1px, transparent 1px);
  background-size: 36px 36px;
  overflow: hidden;
  opacity: calc(0.4 + 0.6 * var(--roof-focus, 0));
}
#rmsih .roof-blueprint > span {
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #a5bac6;
}
#rmsih .roof-blueprint:after {
  content: '';
  position: absolute;
  inset: 15%;
  border: 1px dashed #fedd1130;
  border-radius: 50%;
  transform: scale(calc(0.8 + 0.2 * var(--roof-focus, 0)));
}
#rmsih .roof-blueprint > i {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 1px;
  background: linear-gradient(transparent, #fedd1140, transparent);
  transform: rotate(30deg);
}
#rmsih .roof-layer span {
  padding: 5px 8px;
  background: #07131bc9;
  border: 1px solid #ffffff26;
  border-radius: 3px;
  font-size: 12px;
  text-shadow: none;
}
#rmsih .project-image > img {
  will-change: transform;
}
#rmsih .project-copy {
  max-width: 80%;
}
#rmsih .service-slot {
  perspective: 1100px;
}
#rmsih .service-card {
  border-radius: 10px;
  border: 1px solid #ffffff12;
  box-shadow: 0 20px 45px #07131b22;
}
#rmsih .service-photo:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--yellow);
  transform: scaleX(var(--service-focus, 1));
  transform-origin: left;
  pointer-events: none;
}
#rmsih .services {
  border-radius: 32px 32px 0 0;
}
#rmsih .site-header nav a:not(.pill) {
  position: relative;
  padding-block: 8px;
}
#rmsih .site-header nav a:not(.pill):after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
#rmsih .site-header nav a:hover:after,
#rmsih .site-header nav a:focus-visible:after {
  transform: scaleX(1);
}
@media (max-width: 800px) {
  #rmsih .chapter-guide {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-width: 440px;
    padding: 4px;
    gap: 1px;
  }
  #rmsih .chapter-guide a {
    flex: 1;
    padding: 10px 4px;
    font-size: 11px;
    gap: 0;
  }
  #rmsih .chapter-guide a > span {
    display: none;
  }
  #rmsih .hero-frame {
    inset: 96px 4% 100px;
  }
  #rmsih .hero-frame > span {
    display: none;
  }
  #rmsih .roof-blueprint > span {
    font-size: 8px;
  }
  #rmsih .roof-layer span {
    font-size: 10px;
    left: 9px;
    bottom: 8px;
    padding: 4px;
  }
  #rmsih.motion .project-copy {
    bottom: 18%;
  }
  #rmsih .services {
    border-radius: 20px 20px 0 0;
  }
  #rmsih .site-footer {
    padding-bottom: 105px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #rmsih .hero-copy,
  #rmsih .project-image > img {
    transform: none !important;
    will-change: auto;
  }
  #rmsih .roof-blueprint {
    opacity: 1;
  }
}
@media print {
  #rmsih .chapter-guide,
  #rmsih .reading-progress {
    display: none;
  }
}

/* the existing WordPress navigation and Smart Slider above the immersive content. */
#rmsih .site-header {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  min-height: 96px;
  padding: 16px 4%;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--ink);
  z-index: 70;
}
#rmsih .original-logo {
  width: 150px;
}
#rmsih .site-header #rms-navigation {
  display: block;
  position: static;
  background: none;
  padding: 0;
  flex: 1;
  min-width: 0;
}
#rmsih .rms-menu,
#rmsih .rms-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#rmsih .rms-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
#rmsih .rms-menu > li {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
#rmsih .site-header .rms-menu a {
  display: block;
  padding: 13px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rms-color-white);
}
#rmsih .site-header .rms-menu a:hover {
  color: var(--yellow);
}
#rmsih .rms-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 285px;
  max-width: 340px;
  padding: 8px;
  background: #112a39;
  border: 1px solid #ffffff20;
  border-radius: 6px;
  box-shadow: 0 18px 35px #0005;
  z-index: 80;
}
#rmsih .rms-menu .sub-menu li {
  position: relative;
}
#rmsih .site-header .sub-menu a {
  padding: 12px 14px;
  white-space: normal;
  font-size: 12px;
}
#rmsih .rms-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}
#rmsih .rms-menu .submenu-open > .sub-menu {
  display: block;
}
#rmsih .submenu-toggle {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 40px;
  padding: 0;
  background: transparent;
  color: var(--yellow);
  font-size: 20px;
}
#rmsih .submenu-toggle[aria-expanded='true'] > span {
  transform: rotate(180deg);
}
#rmsih .site-header .menu-item-has-children > a:after {
  content: none !important;
}
#rmsih .header-search {
  position: relative;
  font-size: 12px;
  color: white;
}
#rmsih .header-search summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px;
}
#rmsih .header-search form {
  position: absolute;
  right: 0;
  top: 100%;
  padding: 18px;
  width: 290px;
  background: #112a39;
  border: 1px solid #ffffff25;
  border-radius: 6px;
  z-index: 90;
}
#rmsih .header-search label {
  display: block;
  margin-bottom: 10px;
}
#rmsih .header-search form > div {
  display: flex;
  gap: 8px;
}
#rmsih .header-search input {
  min-width: 0;
  width: 100%;
  padding: 10px;
  color: var(--rms-color-ink);
  background: white;
  border: 1px solid #a5bac6;
  border-radius: 3px;
}
#rmsih .header-search button {
  padding: 10px;
  background: var(--yellow);
  color: var(--ink);
}
#rmsih .hero.has-original-slider {
  display: block;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  isolation: auto;
}
#rmsih .original-slider {
  width: 100%;
  position: relative;
  line-height: normal;
}
#rmsih .original-slider .n2-section-smartslider {
  max-width: 100%;
}
@media (hover: hover) and (min-width: 1001px) {
  #rmsih .rms-menu li:hover > .sub-menu {
    display: block;
  }
}
@media (max-width: 1000px) {
  #rmsih .site-header {
    min-height: 84px;
    padding: 12px 5%;
    gap: 12px;
  }
  #rmsih .site-header .menu-toggle {
    display: block;
    color: white;
    background: transparent;
    padding: 12px;
    margin-left: auto;
  }
  #rmsih .site-header #rms-navigation {
    display: none;
    flex-basis: 100%;
    order: 5;
    max-height: 65svh;
    overflow: auto;
    padding: 10px 0;
  }
  #rmsih .site-header #rms-navigation.open {
    display: block;
  }
  #rmsih .rms-menu {
    display: block;
  }
  #rmsih .rms-menu > li {
    border-top: 1px solid #ffffff16;
  }
  #rmsih .site-header .rms-menu > li > a {
    flex: 1;
    padding: 15px 8px;
    font-size: 14px;
  }
  #rmsih .submenu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  #rmsih .rms-menu .sub-menu {
    position: static;
    flex-basis: 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-shadow: none;
    border-radius: 0;
    border: 0;
    padding: 4px 10px;
  }
  #rmsih .rms-menu .sub-menu .sub-menu {
    position: static;
  }
  #rmsih .header-search form {
    right: 0;
    max-width: 85vw;
  }
}

#rmsih .screen-reader-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
#rmsih .credentials {
  padding-block: 80px 100px;
  border-top: 1px solid #ffffff20;
}
#rmsih .credentials h2 {
  font-size: clamp(38px, 4.4vw, 64px);
}
#rmsih .credentials p:not(.eyebrow) {
  max-width: 600px;
  margin-top: 25px;
  color: #c2cbd1;
}
#rmsih .credential-names {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
#rmsih .credential-names > span {
  padding: 12px 18px;
  border: 1px solid #ffffff30;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  font-weight: 700;
}
#rmsih .footer-directory {
  padding-block: 65px 45px;
}
#rmsih .footer-directory nav {
  display: block;
}
#rmsih .footer-directory .rms-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 28px;
}
#rmsih .footer-directory .rms-menu > li {
  display: block;
}
#rmsih .footer-directory .rms-menu a {
  display: block;
  padding: 8px 0;
  font-size: 12px;
  color: #d5e0e7;
  line-height: 1.45;
}
#rmsih .footer-directory .rms-menu > li > a {
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
}
#rmsih .footer-directory .rms-menu .sub-menu {
  display: block;
  position: static;
  min-width: 0;
  max-width: none;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#rmsih .footer-contact-details {
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid #ffffff25;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 13px;
  color: #d5e0e7;
}
#rmsih .footer-contact-details p {
  width: 100%;
  font-size: 12px;
}
#rmsih .original-social-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
#rmsih .original-social-links a {
  color: var(--yellow);
  padding-block: 10px;
}
@media (max-width: 800px) {
  #rmsih .footer-directory .rms-menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  #rmsih .footer-contact-details > a {
    width: 100%;
  }
  #rmsih .credential-names > span {
    font-size: 13px;
    padding: 10px 12px;
  }
}

#rmsih .location {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 7%;
  align-items: center;
  padding-block: 80px;
}
#rmsih .location h2 {
  font-size: clamp(36px, 4vw, 60px);
}
#rmsih .location p:not(.eyebrow) {
  font-size: 14px;
  max-width: 420px;
  margin-top: 20px;
  color: #c2cbd1;
}
#rmsih .location iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
  border-radius: 12px;
  background: #dce4e8;
}
@media (max-width: 800px) {
  #rmsih .location {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 60px;
  }
  #rmsih .location iframe {
    height: 340px;
  }
}

/* prevent theme mobile-navigation controls leaking into the desktop header. */
#rmsih .site-header #rms-navigation {
  align-self: center;
}
#rmsih .site-header .rms-menu {
  float: none;
  width: auto;
}
#rmsih .site-header .rms-menu > li {
  float: none;
  margin: 0;
}
#rmsih .site-header .rms-menu > .mobilenav-main-link {
  display: none !important;
}
@media (min-width: 1001px) {
  #rmsih .site-header > .menu-toggle {
    display: none !important;
  }
}
@media (max-width: 1000px) {
  #rmsih .site-header > .menu-toggle {
    display: block !important;
  }
}

/* Roof stage layout. Later selected-layer rules provide the current click-to-enlarge behavior. */
#rmsih .roof-demo {
  height: clamp(430px, 32vw, 510px);
  padding-bottom: 64px;
}
#rmsih .roof-blueprint {
  bottom: 64px;
}
#rmsih .diagram-note {
  position: absolute;
  inset: auto 0 0;
  width: auto;
  min-height: 48px;
  padding: 13px 16px;
  text-align: center !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #c2d1da;
  background: #0c202d;
  border: 1px solid #89adbf26;
  border-radius: 8px;
  z-index: 5;
}
#rmsih.scroll-motion .roof-scene {
  inset: auto;
  left: 50%;
  top: 42%;
  width: 100%;
  max-width: 620px;
  height: 330px;
  transform: translate(-50%, -50%)
    rotateX(calc(59deg - 4deg * var(--roof-focus, 0) - 4deg * var(--roof-pointer-y, 0)))
    rotateZ(calc(-28deg + 4deg * var(--roof-focus, 0) + 5deg * var(--roof-pointer-x, 0)))
    scale(calc(0.78 + 0.04 * var(--roof-focus, 0)));
  transition: transform 0.12s ease-out;
}
#rmsih.scroll-motion .roof-demo .membrane {
  transform: translateZ(calc(70px + 80px * var(--roof-spread, 0)))
    translateX(calc(18px * var(--roof-pointer-x, 0)))
    translateY(calc(8px * var(--roof-pointer-y, 0)));
  transition: transform 0.12s ease-out;
}
#rmsih.scroll-motion .roof-demo .insulation {
  transform: translateZ(calc(20px - 20px * var(--roof-spread, 0)))
    translateX(calc(7px * var(--roof-pointer-x, 0)))
    translateY(calc(3px * var(--roof-pointer-y, 0)));
  transition: transform 0.12s ease-out;
}
#rmsih.scroll-motion .roof-demo .deck {
  transform: translateZ(calc(-30px - 90px * var(--roof-spread, 0)))
    translateX(calc(-9px * var(--roof-pointer-x, 0)))
    translateY(calc(-4px * var(--roof-pointer-y, 0)));
  transition: transform 0.12s ease-out;
}
#rmsih .chapter-guide a {
  gap: 0;
  padding-inline: 18px;
}
@media (max-width: 800px) {
  #rmsih .roof-demo {
    height: 405px;
    padding-bottom: 60px;
  }
  #rmsih .roof-blueprint {
    bottom: 60px;
  }
  #rmsih.scroll-motion .roof-scene {
    top: 41%;
    max-width: 460px;
    height: 290px;
    transform: translate(-50%, -50%)
      rotateX(calc(59deg - 4deg * var(--roof-focus, 0) - 4deg * var(--roof-pointer-y, 0)))
      rotateZ(calc(-28deg + 4deg * var(--roof-focus, 0) + 5deg * var(--roof-pointer-x, 0)))
      scale(calc(0.68 + 0.03 * var(--roof-focus, 0)));
  }
  #rmsih .chapter-guide a {
    padding-inline: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #rmsih.scroll-motion .roof-scene {
    transform: translate(-50%, -50%) rotateX(55deg) rotateZ(-24deg) scale(0.82);
    transition: none;
    will-change: auto;
  }
}
@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
  #rmsih.scroll-motion .roof-scene {
    transform: translate(-50%, -50%) rotateX(55deg) rotateZ(-24deg) scale(0.71);
  }
}

/* preserve button contrast, including hover and keyboard focus. */
#rmsih a.cta,
#rmsih a.cta.light {
  color: var(--rms-color-ink);
  background: var(--rms-color-accent);
}
#rmsih a.cta.light {
  background: var(--rms-color-white);
}
#rmsih a.cta.dark {
  color: var(--rms-color-white);
  background: var(--rms-color-ink);
}
#rmsih a.cta:hover,
#rmsih a.cta:focus-visible {
  color: var(--rms-color-ink);
  background: var(--rms-color-white);
}
#rmsih a.cta.dark:hover,
#rmsih a.cta.dark:focus-visible {
  color: var(--rms-color-ink);
  background: var(--rms-color-white);
}
#rmsih a.cta > span {
  color: inherit;
}

/* one compact footer, with no duplicate header sitemap. */
#rmsih .site-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 38px 45px;
  align-items: start;
  padding-top: 55px;
  padding-bottom: 110px;
}
#rmsih .site-footer > div {
  display: block;
}
#rmsih .site-footer .footer-brand {
  display: inline-block;
  font-size: 42px;
  line-height: 1.2;
}
#rmsih .site-footer .footer-brand span {
  font-size: 14px;
}
#rmsih .site-footer .footer-intro p {
  font-size: 13px;
  color: #c2cbd1;
  margin-top: 12px;
}
#rmsih .site-footer h3 {
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--yellow);
  margin: 0 0 14px;
}
#rmsih .site-footer .footer-contact > a {
  display: block;
  padding: 5px 0;
  color: #e3ebef;
  font-size: 14px;
  overflow-wrap: anywhere;
}
#rmsih .site-footer .original-social-links {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
}
#rmsih .site-footer .original-social-links a {
  color: #e3ebef;
  font-size: 13px;
  padding: 5px 0;
}
#rmsih .site-footer a:hover {
  color: var(--yellow);
}
#rmsih .site-footer .footer-bottom {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #ffffff25;
  padding-top: 23px;
  font-size: 12px;
}
#rmsih .site-footer .footer-bottom small {
  font-size: 11px;
  color: #a7b8c3;
}
@media (max-width: 800px) {
  #rmsih .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 100px;
  }
  #rmsih .site-footer .footer-intro {
    grid-column: 1/-1;
  }
  #rmsih .site-footer .footer-bottom {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  #rmsih .site-footer .footer-bottom small {
    width: auto;
  }
}
@media (max-width: 480px) {
  #rmsih .site-footer {
    grid-template-columns: 1fr;
  }
  #rmsih .site-footer .footer-intro {
    grid-column: auto;
  }
}

/* select, lift and inspect each roof layer. No pointer-follow behaviour. */
#rmsih .roof-demo {
  height: 460px;
  padding-bottom: 0;
  perspective: 1000px;
}
#rmsih .roof-blueprint {
  bottom: 0;
  background-size: 30px 30px;
}
#rmsih .roof-blueprint > span {
  font-size: 9px;
}
#rmsih.scroll-motion .roof-scene {
  top: 50%;
  height: 330px;
  transform: translate(-50%, -50%) rotateX(52deg) rotateZ(-24deg) scale(0.78);
  transition: transform 0.45s ease;
}
#rmsih.scroll-motion .roof-demo .membrane {
  transform: translateZ(calc(70px + 80px * var(--roof-spread, 0)));
  border-bottom: 8px solid #41515b;
}
#rmsih.scroll-motion .roof-demo .insulation {
  transform: translateZ(calc(20px - 20px * var(--roof-spread, 0)));
  border-bottom: 20px solid #8c784d;
}
#rmsih.scroll-motion .roof-demo .deck {
  transform: translateZ(calc(-30px - 90px * var(--roof-spread, 0)));
  border-bottom: 8px solid #263741;
}
#rmsih.scroll-motion .roof-demo .roof-layer {
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.35s,
    box-shadow 0.35s;
  box-shadow: 0 30px 45px #0008;
  cursor: zoom-in;
  transform-style: preserve-3d;
  appearance: none;
  padding: 0;
}
#rmsih .roof-layer:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #ffffff30, transparent 40%, #00000020);
  pointer-events: none;
}
#rmsih .roof-layer:after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #ffffff55;
  pointer-events: none;
}
#rmsih.scroll-motion .roof-demo.has-selection .roof-layer {
  opacity: 0.26;
}
#rmsih.scroll-motion .roof-demo.has-selection .roof-layer.is-selected {
  opacity: 1;
  transform: translateZ(185px) scale(1.12);
  box-shadow:
    0 35px 65px #000b,
    0 0 0 3px var(--rms-color-accent);
  cursor: zoom-out;
  z-index: 6;
}
#rmsih .roof-layer:focus-visible {
  outline: 3px solid var(--rms-color-accent);
  outline-offset: 6px;
}
#rmsih .layer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
#rmsih .layer-controls button {
  padding: 11px 15px;
  min-height: 44px;
  color: #dce7ed;
  background: #112a39;
  border: 1px solid #668394;
  border-radius: 5px;
  font-size: 13px;
}
#rmsih .layer-controls button[aria-pressed='true'] {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}
#rmsih .systems-copy p.layer-description {
  font-size: 13px;
  line-height: 1.6 !important;
  color: #c2d1da;
  margin-top: 16px;
  min-height: 64px;
  max-width: 440px;
}
@media (max-width: 800px) {
  #rmsih .roof-demo {
    height: 410px;
  }
  #rmsih.scroll-motion .roof-scene {
    top: 53%;
    max-width: 460px;
    height: 290px;
    transform: translate(-50%, -50%) rotateX(52deg) rotateZ(-24deg) scale(0.68);
  }
  #rmsih.scroll-motion .roof-demo.has-selection .roof-layer.is-selected {
    transform: translateZ(145px) scale(1.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  #rmsih.scroll-motion .roof-demo .roof-layer {
    transition: none !important;
  }
}

/* true touching surfaces in the assembled illustrative roof block.
   Closed top elevations: deck 12, insulation 40, membrane 44 pixels.
   Thicknesses: 12, 28 and 4 pixels, so each bottom meets the surface below. */
#rmsih.scroll-motion .roof-demo .roof-layer {
  border: 0;
  border-bottom: 0;
  overflow: visible;
  box-shadow: 0 calc(2px + 18px * var(--roof-spread, 0)) calc(3px + 24px * var(--roof-spread, 0))
    #0006;
}
#rmsih.scroll-motion .roof-demo .membrane {
  --layer-thickness: 4px;
  transform: translateZ(calc(44px + 106px * var(--roof-spread, 0)));
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 120px,
      #ffffff0d 121px,
      #00000035 122px,
      transparent 123px
    ),
    linear-gradient(145deg, #6b777c, #424d52 60%, #364247);
}
#rmsih.scroll-motion .roof-demo .insulation {
  --layer-thickness: 28px;
  transform: translateZ(calc(40px - 40px * var(--roof-spread, 0)));
  background: repeating-linear-gradient(35deg, #bea370 0, #c8af7c 2px, #b99e6c 3px, #d1b985 5px);
}
#rmsih.scroll-motion .roof-demo .deck {
  --layer-thickness: 12px;
  transform: translateZ(calc(12px - 132px * var(--roof-spread, 0)));
  background: repeating-linear-gradient(
    90deg,
    #32434d 0,
    #718793 6px,
    #b6c3c9 12px,
    #6d828e 18px,
    #283b48 25px,
    #435b69 30px
  );
}
#rmsih .roof-layer > .layer-front,
#rmsih .roof-layer > .layer-side {
  position: absolute;
  display: block;
  pointer-events: none;
  backface-visibility: visible;
}
#rmsih .roof-layer > .layer-front {
  left: 0;
  top: 100%;
  width: 100%;
  height: var(--layer-thickness);
  transform-origin: top;
  transform: rotateX(-90deg);
  background: #35444b;
  box-shadow:
    inset 0 1px #ffffff35,
    inset 0 -1px #0008;
}
#rmsih .roof-layer > .layer-side {
  left: 100%;
  top: 0;
  width: var(--layer-thickness);
  height: 100%;
  transform-origin: left;
  transform: rotateY(90deg);
  background: #26373f;
  box-shadow: inset 1px 0 #ffffff20;
}
#rmsih .insulation > .layer-front {
  background:
    radial-gradient(#79613d99 0.6px, transparent 0.9px) 0 0/4px 4px,
    linear-gradient(#b99c65, #9f814c);
}
#rmsih .insulation > .layer-side {
  background:
    radial-gradient(#75603a88 0.6px, transparent 0.9px) 0 0/4px 4px,
    linear-gradient(90deg, #aa8c55, #80653d);
}
#rmsih .deck > .layer-front {
  background: repeating-linear-gradient(90deg, #283c48 0, #a6b7c0 10px, #4a6373 18px, #203540 30px);
}
#rmsih .membrane > .layer-front {
  background: linear-gradient(#526168, #27373e);
}
#rmsih .roof-layer > span {
  transition: opacity 0.25s;
  transform: translateZ(1px);
}
#rmsih .roof-demo.is-assembled .roof-layer > span {
  opacity: 0;
}
#rmsih.scroll-motion .roof-demo.has-selection .roof-layer.is-selected {
  transform: translateZ(185px) scale(1.12);
  box-shadow:
    0 35px 65px #000b,
    0 0 0 3px var(--rms-color-accent);
}
@media (max-width: 800px) {
  #rmsih.scroll-motion .roof-demo.has-selection .roof-layer.is-selected {
    transform: translateZ(145px) scale(1.08);
  }
}

/* Roof model sits directly on the page, without a blueprint frame. */
#rmsih .roof-demo {
  background: transparent;
  border: 0;
  box-shadow: none;
}
