/* RDS v2 Website Rebuilds */

.rebuild-hero {
  overflow: hidden;
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(0,174,239,.16), transparent 28%),
    radial-gradient(circle at 5% 95%, rgba(239,183,53,.13), transparent 24%),
    linear-gradient(145deg, #071323, #0a213d);
}

.rebuild-hero__grid {
  display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(24rem,.96fr);
  align-items: center;
  gap: clamp(3rem,7vw,7rem);
}

.rebuild-hero .eyebrow,
.rebuild-diagnostic .eyebrow,
.rebuild-cta .eyebrow {
  color: #efb735;
}

.rebuild-hero h1 {
  max-width: 12ch;
  margin: 0 0 1.3rem;
  color: #fff;
  font-size: clamp(3rem,5.3vw,5.4rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.rebuild-hero__lead {
  max-width: 45rem;
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem,1.4vw,1.18rem);
  line-height: 1.65;
}

.rebuild-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.rebuild-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
}

.rebuild-button--primary {
  color: #071323;
  background: #efb735;
}

.rebuild-button--secondary,
.rebuild-button--outline {
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

.rebuild-signals {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.rebuild-signals li {
  position: relative;
  padding-left: 1rem;
  color: rgba(255,255,255,.65);
  font-size: .7rem;
  font-weight: 800;
}

.rebuild-signals li::before {
  position: absolute;
  top: .45em;
  left: 0;
  width: .4rem;
  height: .4rem;
  content: "";
  background: #64d7ef;
  border-radius: 50%;
}


/* visual */

.rebuild-visual {
  position: relative;
  display: grid;
  grid-template-columns: .82fr auto 1.18fr;
  align-items: center;
  gap: .8rem;
  min-height: 28rem;
}

.rebuild-before,
.rebuild-after {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 2rem 4rem rgba(0,0,0,.28);
}

.rebuild-before {
  padding: 1rem;
  color: #566473;
  background: #d9dee3;
  transform: rotate(-2deg);
  animation: rebuild-before-float 6s ease-in-out infinite;
}

.rebuild-before__nav {
  height: 1.5rem;
  margin-bottom: .8rem;
  background: #aab2b9;
  border-radius: .35rem;
}

.rebuild-before__body {
  display: grid;
  grid-template-columns: .42fr 1fr;
  gap: .6rem;
}

.rebuild-before__sidebar {
  min-height: 10rem;
  background: #b8c0c6;
  border-radius: .4rem;
}

.rebuild-before__body > div:last-child {
  display: grid;
  gap: .45rem;
}

.rebuild-before__body i {
  min-height: 1.3rem;
  background: #bec5ca;
  border-radius: .3rem;
}

.rebuild-before > small {
  display: block;
  margin-top: .7rem;
  font-weight: 900;
}

.rebuild-after {
  padding: 1rem;
  color: #071323;
  background: #f7fafc;
  transform: rotate(1.2deg);
  animation: rebuild-after-float 6.5s ease-in-out infinite reverse;
}

.rebuild-after__nav {
  display: flex;
  gap: .7rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #d8e2e8;
  font-size: .55rem;
  font-weight: 900;
}

.rebuild-after__nav b {
  margin-right: auto;
}

.rebuild-after__hero {
  display: grid;
  gap: .6rem;
  padding: 2.2rem .5rem 2.4rem;
}

.rebuild-after__hero small {
  color: #00718f;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rebuild-after__hero strong {
  max-width: 10ch;
  font-size: clamp(1.65rem,2.6vw,2.6rem);
  line-height: .98;
}

.rebuild-after__hero p {
  margin: 0;
  color: #607082;
  font-size: .62rem;
  line-height: 1.5;
}

.rebuild-after__status {
  display: inline-block;
  padding: .4rem .55rem;
  color: #07516a;
  background: #dff3f7;
  border-radius: 999px;
  font-weight: 900;
}

.rebuild-arrow {
  position: relative;
  z-index: 4;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  color: #071323;
  background: #efb735;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 900;
}

.rebuild-label {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 3;
  padding: .35rem .5rem;
  border-radius: 999px;
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.rebuild-label--before {
  color: #5d2826;
  background: #f0c7c3;
}

.rebuild-label--after {
  color: #064861;
  background: #cdeff6;
}


/* general headings */

.rebuild-problems,
.rebuild-method,
.rebuild-preserve,
.rebuild-pathway {
  padding-block: clamp(4rem,7vw,6rem);
}

.rebuild-problems,
.rebuild-pathway {
  background: #f0f4f8;
}

.rebuild-method,
.rebuild-preserve {
  background: #fff;
}

.rebuild-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem,5vw,5rem);
  align-items: end;
  margin-bottom: 2.4rem;
}

.rebuild-heading h2,
.rebuild-method h2,
.rebuild-preserve h2,
.rebuild-diagnostic h2,
.rebuild-pathway h2,
.rebuild-cta h2 {
  margin: 0;
  color: #071323;
  font-size: clamp(2.5rem,4.4vw,4.3rem);
  line-height: .98;
  letter-spacing: -.048em;
}

.rebuild-heading h2 {
  max-width: 16ch;
}

.rebuild-heading > p {
  color: #58687a;
  line-height: 1.65;
}


/* problems */

.rebuild-problem-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1rem;
}

.rebuild-problem-grid article {
  padding: 1.45rem;
  background: #fff;
  border: 1px solid rgba(7,19,35,.09);
  border-top: 3px solid #00718f;
  border-radius: 1rem;
}

.rebuild-problem-grid span {
  color: #d59600;
  font-size: .65rem;
  font-weight: 900;
}

.rebuild-problem-grid h3 {
  margin: .6rem 0;
  color: #071323;
}

.rebuild-problem-grid p {
  margin: 0;
  color: #5b6a7c;
  font-size: .8rem;
  line-height: 1.55;
}


/* method */

.rebuild-method__grid,
.rebuild-pathway__grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(3rem,7vw,7rem);
}

.rebuild-method__intro {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.rebuild-method h2,
.rebuild-pathway h2 {
  max-width: 12ch;
}

.rebuild-method__intro > p:last-child {
  color: #5b697b;
  line-height: 1.65;
}

.rebuild-method__steps,
.rebuild-pathway__steps {
  display: grid;
  gap: .75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rebuild-method__steps li,
.rebuild-pathway__steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem;
  background: #f3f6f9;
  border: 1px solid rgba(7,19,35,.08);
  border-radius: .9rem;
}

.rebuild-method__steps span,
.rebuild-pathway__steps span {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  color: #071323;
  background: #efb735;
  border-radius: 50%;
  font-size: .63rem;
  font-weight: 900;
}

.rebuild-method__steps strong,
.rebuild-pathway__steps strong {
  color: #071323;
}

.rebuild-method__steps p,
.rebuild-pathway__steps p {
  margin: .3rem 0 0;
  color: #5c6979;
  font-size: .78rem;
  line-height: 1.5;
}


/* preserve */

.rebuild-preserve__heading {
  margin-bottom: 2rem;
}

.rebuild-preserve h2 {
  max-width: 18ch;
}

.rebuild-preserve__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rebuild-preserve__grid article {
  padding: clamp(1.5rem,3vw,2.2rem);
  border-radius: 1rem;
}

.rebuild-preserve__keep {
  background: #eaf6ef;
  border: 1px solid #b9dac7;
}

.rebuild-preserve__replace {
  background: #eef3f7;
  border: 1px solid #d2dde6;
}

.rebuild-preserve__grid article > span {
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.rebuild-preserve__grid h3 {
  color: #071323;
}

.rebuild-preserve__grid ul {
  padding-left: 1.2rem;
  color: #506071;
  line-height: 1.8;
}


/* diagnostic */

.rebuild-diagnostic {
  padding-block: clamp(4rem,7vw,6rem);
  color: #fff;
  background:
    radial-gradient(circle at 88% 25%, rgba(0,174,239,.17), transparent 25%),
    linear-gradient(145deg,#071323,#0b2948);
}

.rebuild-diagnostic__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(3rem,7vw,7rem);
}

.rebuild-diagnostic h2,
.rebuild-cta h2 {
  max-width: 14ch;
  color: #fff;
}

.rebuild-diagnostic p {
  color: rgba(255,255,255,.7);
  line-height: 1.65;
}

.rebuild-diagnostic__note {
  padding-left: 1rem;
  border-left: 3px solid #efb735;
}

.rebuild-diagnostic a {
  color: #efb735;
  font-weight: 900;
  text-decoration: none;
}


/* CTA */

.rebuild-cta {
  padding-block: clamp(4rem,7vw,6rem);
  color: #fff;
  background: linear-gradient(110deg,#07516a,#071c35 65%,#071323);
}

.rebuild-cta__grid {
  display: grid;
  grid-template-columns: 1.15fr auto;
  align-items: center;
  gap: 3rem;
}

.rebuild-cta p:not(.eyebrow) {
  max-width: 40rem;
  color: rgba(255,255,255,.68);
}


@keyframes rebuild-before-float {
  0%,100% {
    transform: rotate(-2deg) translateY(0);
  }

  50% {
    transform: rotate(-1.4deg) translateY(7px);
  }
}

@keyframes rebuild-after-float {
  0%,100% {
    transform: rotate(1.2deg) translateY(0);
  }

  50% {
    transform: rotate(.6deg) translateY(-8px);
  }
}


@media (max-width: 1050px) {

  .rebuild-hero__grid,
  .rebuild-method__grid,
  .rebuild-pathway__grid,
  .rebuild-diagnostic__grid {
    grid-template-columns: 1fr;
  }

  .rebuild-method__intro {
    position: static;
  }

  .rebuild-problem-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

}


@media (max-width: 760px) {

  .rebuild-heading,
  .rebuild-cta__grid,
  .rebuild-preserve__grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 600px) {

  .rebuild-hero h1 {
    max-width: none;
    font-size: clamp(2.7rem,12vw,4rem);
  }

  .rebuild-visual {
    grid-template-columns: 1fr;
  }

  .rebuild-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .rebuild-problem-grid {
    grid-template-columns: 1fr;
  }

}


@media (prefers-reduced-motion: reduce) {

  .rebuild-before,
  .rebuild-after {
    animation: none;
  }

}

/* =========================================================
   Website Rebuilds — premium hero correction
   ========================================================= */

.rebuild-hero {
  padding-top: clamp(7.25rem, 10vw, 9rem);
  padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
}

.rebuild-hero__grid {
  grid-template-columns:
    minmax(0, .95fr)
    minmax(34rem, 1.05fr);

  gap: clamp(3rem, 5vw, 5.5rem);
}

.rebuild-hero h1 {
  max-width: 10.5ch;
}


/* Remove old temporary visual system */

.rebuild-before,
.rebuild-after,
.rebuild-arrow {
  display: none;
}


/* Premium before / rebuilt presentation */

.rebuild-visual {
  position: relative;

  display: grid;
  grid-template-columns:
    minmax(0, .83fr)
    5rem
    minmax(0, 1.17fr);

  align-items: center;

  gap: .75rem;

  min-height: 31rem;
}

.rebuild-showcase {
  position: relative;

  overflow: hidden;

  background: #ffffff;

  border:
    1px solid
    rgba(255,255,255,.4);

  border-radius: 1rem;

  box-shadow:
    0 2rem 4.5rem rgba(0,0,0,.3);

  will-change: transform;
}

.rebuild-showcase--before {
  opacity: .88;

  transform:
    rotate(-2.2deg)
    translateY(1.1rem);

  animation:
    rebuild-premium-before
    6.2s
    ease-in-out
    infinite;
}

.rebuild-showcase--after {
  z-index: 2;

  transform:
    rotate(1deg)
    scale(1.035);

  animation:
    rebuild-premium-after
    6.8s
    ease-in-out
    infinite
    reverse;
}


.rebuild-showcase__chrome {
  display: flex;

  align-items: center;

  gap: .35rem;

  min-height: 2rem;

  padding-inline: .72rem;

  color: #627184;

  background: #eef3f6;

  border-bottom:
    1px solid
    #d9e2e8;
}

.rebuild-showcase__chrome > span {
  width: .48rem;
  height: .48rem;

  border-radius: 50%;

  background: #efb735;
}

.rebuild-showcase__chrome > span:nth-child(2) {
  background: #4fb87a;
}

.rebuild-showcase__chrome > span:nth-child(3) {
  background: #24a9cc;
}

.rebuild-showcase__chrome small {
  margin-left: .35rem;

  font-size: .55rem;
  font-weight: 900;
}


.rebuild-showcase__image {
  display: grid;

  min-height: 14.5rem;

  place-items: center;

  padding: .7rem;

  background:
    linear-gradient(
      145deg,
      #f7fafc,
      #eef4f7
    );
}

.rebuild-showcase__image img {
  display: block;

  width: 100%;
  height: auto;

  max-height: 15rem;

  object-fit: contain;
}


.rebuild-showcase__footer {
  display: grid;

  gap: .18rem;

  padding: .85rem 1rem 1rem;
}

.rebuild-showcase__footer > span {
  color: #00718f;

  font-size: .53rem;
  font-weight: 900;

  letter-spacing: .1em;

  text-transform: uppercase;
}

.rebuild-showcase--before
.rebuild-showcase__footer > span {
  color: #9a4b43;
}

.rebuild-showcase__footer strong {
  color: #071323;

  font-size: .9rem;
}

.rebuild-showcase__footer small {
  color: #697889;

  font-size: .61rem;

  line-height: 1.35;
}


/* Center rebuild bridge */

.rebuild-transition {
  position: relative;
  z-index: 5;

  display: grid;

  justify-items: center;

  gap: .4rem;

  text-align: center;
}

.rebuild-transition > span {
  color: #efb735;

  font-size: .52rem;
  font-weight: 900;

  letter-spacing: .1em;
}

.rebuild-transition b {
  display: grid;

  width: 3.25rem;
  height: 3.25rem;

  place-items: center;

  color: #071323;

  background: #efb735;

  border:
    5px solid
    rgba(7,19,35,.75);

  border-radius: 50%;

  box-shadow:
    0 .8rem 1.8rem
    rgba(0,0,0,.28);

  font-size: 1.2rem;
}

.rebuild-transition small {
  width: 8rem;

  color:
    rgba(255,255,255,.58);

  font-size: .53rem;

  line-height: 1.35;
}


/* Movement */

@keyframes rebuild-premium-before {

  0%,
  100% {
    transform:
      rotate(-2.2deg)
      translateY(1.1rem);
  }

  50% {
    transform:
      rotate(-1.4deg)
      translateY(1.55rem);
  }

}

@keyframes rebuild-premium-after {

  0%,
  100% {
    transform:
      rotate(1deg)
      translateY(0)
      scale(1.035);
  }

  50% {
    transform:
      rotate(.45deg)
      translateY(-.6rem)
      scale(1.035);
  }

}


/* Tablet */

@media (max-width: 1100px) {

  .rebuild-hero__grid {
    grid-template-columns: 1fr;
  }

  .rebuild-visual {
    max-width: 50rem;

    margin-inline: auto;
  }

}


/* Mobile */

@media (max-width: 700px) {

  .rebuild-hero {
    padding-top: 6.5rem;
  }

  .rebuild-visual {
    grid-template-columns: 1fr;

    gap: 1rem;

    min-height: auto;
  }

  .rebuild-transition {
    grid-template-columns:
      auto
      auto;

    justify-content: center;

    align-items: center;
  }

  .rebuild-transition b {
    transform: rotate(90deg);
  }

  .rebuild-transition small {
    grid-column: 1 / -1;
  }

  .rebuild-showcase--before,
  .rebuild-showcase--after {
    transform: none;
  }

}


/* Respect reduced motion */

@media (prefers-reduced-motion: reduce) {

  .rebuild-showcase--before,
  .rebuild-showcase--after {
    animation: none;
  }

}

/* Website Rebuilds — locked hero spacing */

.rebuild-hero {
  padding-top: clamp(4.75rem, 6vw, 6rem);
  padding-bottom: clamp(4.5rem, 7vw, 6rem);
}

.rebuild-hero__grid {
  grid-template-columns:
    minmax(0, .95fr)
    minmax(34rem, 1.05fr);

  gap: clamp(3rem, 5vw, 5rem);
}

.rebuild-visual {
  min-height: 28rem;
}

@media (max-width: 1100px) {
  .rebuild-hero {
    padding-top: 4.5rem;
  }
}

@media (max-width: 700px) {
  .rebuild-hero {
    padding-top: 3.5rem;
  }
}

/* Website Rebuilds — final viewport fit */

.rebuild-hero {
  padding-top: clamp(2.75rem, 4vw, 3.75rem);
  padding-bottom: clamp(3.25rem, 5vw, 4.5rem);
}

.rebuild-hero__grid {
  grid-template-columns:
    minmax(0, .92fr)
    minmax(34rem, 1.08fr);

  align-items: center;
  gap: clamp(2.5rem, 4vw, 4.5rem);
}

.rebuild-hero h1 {
  max-width: 12.5ch;

  font-size:
    clamp(
      3.7rem,
      4.7vw,
      4.75rem
    );

  line-height: .96;
}

.rebuild-hero__lead {
  max-width: 39rem;
  font-size: 1.03rem;
  line-height: 1.58;
}

.rebuild-visual {
  min-height: 24rem;
  transform: translateY(-.65rem);
}

@media (max-width: 1100px) {

  .rebuild-hero {
    padding-top: 3rem;
  }

  .rebuild-visual {
    transform: none;
  }

}

@media (max-width: 700px) {

  .rebuild-hero {
    padding-top: 2.5rem;
  }

  .rebuild-hero h1 {
    max-width: none;
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

}
