.rf-template-page {
  --rf-orange: #ff5a1f;
  --rf-ink: #111111;
  --rf-muted: #64615d;
  --rf-line: rgba(255, 90, 31, .18);
  background: #fbf7f2;
  color: var(--rf-ink);
  overflow: hidden;
}

body.page-template-services-template .navbar,
body.page-template-templatesservices-template-php .navbar,
body.page-template-projects-template .navbar,
body.page-template-templatesprojects-template-php .navbar {
  position: fixed;
}

.rf-template-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(8rem, 15vh, 11rem) 0 clamp(4rem, 8vw, 7rem);
  isolation: isolate;
}

.rf-template-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 28%, rgba(255, 90, 31, .18), transparent 23%),
    linear-gradient(90deg, #ffffff 0%, #ffffff 44%, rgba(255, 243, 235, .78) 100%);
}

.rf-template-hero__inner,
.rf-template-section,
.rf-template-cta {
  width: min(100% - 2rem, 1320px);
  margin: 0 auto;
}

.rf-template-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, .72fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.rf-template-kicker {
  margin: 0 0 1rem;
  color: var(--rf-orange);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rf-template-hero h1,
.rf-section-head h2,
.rf-split-band__copy h2,
.rf-case-section__copy h2,
.rf-template-cta h2 {
  margin: 0;
  color: var(--rf-ink);
  font-size: clamp(2.1rem, 4vw, 4.35rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.06;
}

.rf-template-hero__copy > p:not(.rf-template-kicker),
.rf-split-band__copy p:not(.rf-template-kicker),
.rf-case-section__copy p:not(.rf-template-kicker) {
  max-width: 660px;
  margin: 1.35rem 0 0;
  color: #3e3a36;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.72;
}

.rf-template-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.rf-template-button,
.rf-template-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}

.rf-template-button {
  padding: 0 1.55rem;
  background: var(--rf-orange);
  color: #ffffff;
}

.rf-template-link {
  padding: 0 1.35rem;
  border: 1px solid var(--rf-line);
  background: rgba(255, 255, 255, .78);
  color: var(--rf-ink);
}

.rf-template-button:hover,
.rf-template-link:hover {
  transform: translateY(-3px);
}

.rf-service-orbit {
  position: relative;
  min-height: clamp(440px, 40vw, 570px);
  border: 1px solid rgba(255, 90, 31, .2);
  border-radius: 42px;
  background:
    linear-gradient(rgba(255, 90, 31, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 90, 31, .055) 1px, transparent 1px),
    rgba(255, 255, 255, .62);
  background-size: 42px 42px;
  transform-style: preserve-3d;
}

.rf-service-orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: var(--rf-orange);
  color: #ffffff;
  font-size: 2.7rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.rf-service-orbit span {
  position: absolute;
  min-width: 126px;
  padding: .86rem 1rem;
  border: 1px solid rgba(255, 90, 31, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  color: var(--rf-ink);
  font-weight: 900;
  animation: rfOrbitFloat 5s ease-in-out infinite;
}

.rf-service-orbit span:nth-child(2) { left: 7%; top: 20%; }
.rf-service-orbit span:nth-child(3) { right: 7%; top: 17%; animation-delay: .5s; }
.rf-service-orbit span:nth-child(4) { right: 8%; bottom: 24%; animation-delay: 1s; }
.rf-service-orbit span:nth-child(5) { left: 10%; bottom: 18%; animation-delay: 1.5s; }
.rf-service-orbit span:nth-child(6) { left: 50%; top: 8%; transform: translateX(-50%); animation-delay: 2s; }

.rf-template-section {
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.rf-section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.rf-section-head h2,
.rf-split-band__copy h2,
.rf-case-section__copy h2,
.rf-template-cta h2 {
  font-size: clamp(1.9rem, 3.2vw, 3.25rem);
}

.rf-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(17, 17, 17, .12);
  border-left: 1px solid rgba(17, 17, 17, .12);
}

.rf-service-tile {
  min-height: 290px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-right: 1px solid rgba(17, 17, 17, .12);
  border-bottom: 1px solid rgba(17, 17, 17, .12);
  background: #fbf7f2;
  transition: background-color .28s ease, transform .28s ease;
}

.rf-service-tile:hover {
  background: #ffffff;
  transform: translateY(-6px);
}

.rf-service-tile span,
.rf-project-card span,
.rf-case-panel span {
  color: var(--rf-orange);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rf-service-tile h3,
.rf-flow-card h3,
.rf-project-card h3 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.15;
}

.rf-service-tile p,
.rf-flow-card p,
.rf-project-card p {
  margin: 0;
  color: var(--rf-muted);
  line-height: 1.65;
}

.rf-split-band,
.rf-case-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.rf-split-band__media,
.rf-case-panel {
  min-height: 430px;
  border-radius: 34px;
  border: 1px solid var(--rf-line);
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 90, 31, .18), transparent 24%),
    #ffffff;
  display: grid;
  place-items: center;
}

.rf-mini-dashboard {
  width: min(76%, 360px);
  padding: 2rem;
  border: 1px solid rgba(17, 17, 17, .1);
  border-radius: 24px;
  background: #111111;
  color: #ffffff;
}

.rf-mini-dashboard span,
.rf-mini-dashboard strong {
  display: block;
}

.rf-mini-dashboard strong {
  margin: .55rem 0 1.2rem;
  font-size: 4.5rem;
  line-height: 1;
}

.rf-mini-dashboard i {
  display: block;
  height: 12px;
  margin-top: .75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rf-orange), rgba(255, 255, 255, .22));
}

.rf-mini-dashboard i:nth-child(4) { width: 74%; }
.rf-mini-dashboard i:nth-child(5) { width: 54%; }

.rf-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rf-flow-card {
  position: relative;
  min-height: 300px;
  padding: 2rem;
  border: 1px solid rgba(17, 17, 17, .1);
  border-radius: 28px;
  background: #ffffff;
  overflow: hidden;
}

.rf-flow-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border: 1px solid var(--rf-line);
  border-radius: 38px;
  transform: rotate(18deg);
}

.rf-flow-card span {
  color: rgba(255, 90, 31, .35);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.rf-template-cta {
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  border-radius: 34px;
  background: #111111;
  color: #ffffff;
}

.rf-template-cta h2 {
  max-width: 760px;
  color: #ffffff;
}

.rf-project-hero::before {
  background:
    radial-gradient(circle at 76% 34%, rgba(255, 90, 31, .18), transparent 23%),
    linear-gradient(90deg, #ffffff 0%, #ffffff 46%, #fff3eb 100%);
}

.rf-project-preview-wall {
  position: relative;
  min-height: clamp(520px, 45vw, 690px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 1.4vw, 1.15rem);
  overflow: hidden;
  border-inline: 1px solid rgba(17, 17, 17, .08);
  padding-inline: clamp(.5rem, 1.2vw, 1rem);
}

.rf-project-preview-wall__fade {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 22%;
  pointer-events: none;
}

.rf-project-preview-wall__fade--top {
  top: 0;
  background: linear-gradient(#fff8f2, rgba(255, 248, 242, 0));
}

.rf-project-preview-wall__fade--bottom {
  bottom: 0;
  background: linear-gradient(rgba(255, 248, 242, 0), #fff8f2);
}

.rf-project-preview-column {
  position: relative;
  overflow: hidden;
}

.rf-project-preview-track {
  display: grid;
  gap: clamp(.75rem, 1.5vw, 1rem);
  animation: rfPreviewFlowUp 28s linear infinite;
}

.rf-project-preview-column--2 .rf-project-preview-track {
  animation-name: rfPreviewFlowDown;
  animation-duration: 34s;
  transform: translateY(-50%);
}

.rf-project-preview-column--3 .rf-project-preview-track {
  animation-duration: 31s;
}

.rf-project-preview {
  min-height: clamp(180px, 16vw, 250px);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, .1);
  border-radius: 3px;
  background: #ffffff;
}

.rf-project-preview__browser {
  height: 30px;
  display: flex;
  gap: 6px;
  align-items: center;
  padding-inline: 12px;
  border-bottom: 1px solid rgba(17, 17, 17, .08);
  background: #f2f0ed;
}

.rf-project-preview__browser span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(17, 17, 17, .28);
}

.rf-project-preview__screen {
  position: relative;
  min-height: calc(clamp(180px, 16vw, 250px) - 30px);
  padding: 1rem;
  display: grid;
  align-content: end;
  gap: .55rem;
  isolation: isolate;
}

.rf-project-preview__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(145deg, rgba(255, 90, 31, .88), transparent 42%),
    linear-gradient(25deg, rgba(17, 17, 17, .88), transparent 55%),
    #f8f4ee;
}

.rf-project-preview__screen i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
}

.rf-project-preview__screen i:nth-child(1) { width: 82%; }
.rf-project-preview__screen i:nth-child(2) { width: 58%; }
.rf-project-preview__screen i:nth-child(3) { width: 38%; }

.rf-project-preview__screen strong {
  margin-top: .5rem;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
  line-height: 1.1;
}

.rf-project-preview--2 .rf-project-preview__screen::before,
.rf-project-preview--5 .rf-project-preview__screen::before,
.rf-project-preview--8 .rf-project-preview__screen::before {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 90, 31, .72), transparent 25%),
    linear-gradient(145deg, #111111, #3b3029 62%, #fff1e7);
}

.rf-project-preview--3 .rf-project-preview__screen::before,
.rf-project-preview--6 .rf-project-preview__screen::before,
.rf-project-preview--9 .rf-project-preview__screen::before {
  background:
    linear-gradient(135deg, rgba(255, 90, 31, .12), rgba(255, 90, 31, .84)),
    repeating-linear-gradient(90deg, rgba(17, 17, 17, .14) 0 1px, transparent 1px 24px),
    #fff9f4;
}

.rf-project-preview--3 .rf-project-preview__screen strong,
.rf-project-preview--6 .rf-project-preview__screen strong,
.rf-project-preview--9 .rf-project-preview__screen strong {
  color: #111111;
}

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

.rf-project-card {
  min-height: 360px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(17, 17, 17, .1);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 90, 31, .14), transparent 52%),
    #ffffff;
  transition: transform .28s ease, background-color .28s ease;
}

.rf-project-card:hover {
  background-color: #fff7f1;
  transform: translateY(-8px) rotate(-1deg);
}

.rf-project-card h3 {
  margin-top: 0;
}

.rf-project-ribbon {
  width: 100%;
  max-width: none;
  padding: 2.5rem 0;
  border-block: 1px solid rgba(17, 17, 17, .1);
  background: #111111;
  color: #ffffff;
}

.rf-project-ribbon__track {
  width: max-content;
  display: flex;
  gap: 1rem;
  animation: rfRibbonMove 34s linear infinite;
}

.rf-project-ribbon span {
  padding: .9rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
}

.rf-case-panel {
  align-content: center;
  justify-items: start;
  padding: 2rem;
}

.rf-case-panel strong {
  max-width: 420px;
  margin-top: 1rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
}

.rf-case-panel div {
  width: 100%;
  height: 14px;
  margin-top: 2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rf-orange), rgba(255, 90, 31, .12));
}

.rf-project-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rf-project-stat {
  padding: 2rem;
  border-top: 1px solid rgba(17, 17, 17, .14);
}

.rf-project-stat strong,
.rf-project-stat span {
  display: block;
}

.rf-project-stat strong {
  color: var(--rf-orange);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
}

.rf-project-stat span {
  margin-top: .7rem;
  color: var(--rf-muted);
  font-weight: 800;
  text-transform: uppercase;
}

.rf-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.rf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rfOrbitFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes rfPreviewFlowUp {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes rfPreviewFlowDown {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

@keyframes rfRibbonMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .rf-service-orbit span,
  .rf-project-preview-track,
  .rf-project-ribbon__track,
  .rf-reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1080px) {
  .rf-template-hero__inner,
  .rf-split-band,
  .rf-case-section {
    grid-template-columns: 1fr;
  }

  .rf-service-grid,
  .rf-project-grid,
  .rf-flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .rf-template-hero {
    min-height: auto;
  }

  .rf-template-hero__inner {
    grid-template-columns: 1fr;
  }

  .rf-service-orbit,
  .rf-project-preview-wall {
    min-height: 420px;
  }

  .rf-service-grid,
  .rf-project-grid,
  .rf-flow-steps,
  .rf-project-stats {
    grid-template-columns: 1fr;
  }

  .rf-template-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
