/* =========================================================
   REMONDIPARTNER — CLEAN CSS
   Struktuur:
   01. Muutujad ja baasseaded
   02. Üldkomponendid
   03. Navbar
   04. Hero
   05. Meist
   06. Teenused
   07. Miks meie
   08. Tehtud tööd / galerii
   09. Töö käik
   10. Kontakt
   11. Footer
   12. Animatsioonid
   13. Responsive
   ========================================================= */


/* =========================================================
   01. MUUTUJAD JA BAASSEADED
   ========================================================= */

:root {
  --ink: #1d211d;
  --ink-2: #2c342d;
  --sand: #e9e3d9;
  --paper: #f6f3ee;
  --lime: #cddc73;
  --lime-dark: #9aae2f;
  --line: rgba(29, 33, 29, .16);
  --muted: #73776f;
  --dark-section: #202520;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img,
video {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 56px), var(--container));
  margin: auto;
}

.rp-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 135px 0;
}

.section-label,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font: 500 11px "DM Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =========================================================
   02. ÜLDKOMPONENDID
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-weight: 800;
  font-size: 13px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--lime);
  color: var(--ink);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .58);
  color: #fff;
}

.btn-dark {
  width: 100%;
  justify-content: space-between;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.text-link {
  display: inline-block;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  font-weight: 800;
}

.text-link span {
  margin-left: 13px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 70px;
  margin-bottom: 55px;
}

.section-heading > div {
  max-width: 680px;
}

.section-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.03;
  letter-spacing: -.065em;
}

.section-heading > p {
  max-width: 360px;
  margin: 0;
  color: #50554e;
  line-height: 1.7;
}


/* =========================================================
   03. NAVBAR
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  color: #fff;
  background: transparent;
  transition:
    padding .32s ease,
    background-color .32s ease,
    color .32s ease,
    box-shadow .32s ease,
    backdrop-filter .32s ease;
}

.site-header.is-scrolled {
  padding: 14px 28px;
  background-color: rgba(246, 243, 238, .95);
  color: var(--ink);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "DM Mono", monospace;
  font-size: 14px;
}

.brand-text {
  font-size: 17px;
}

.brand-text span {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 13px;
  font-weight: 700;
}

.site-nav > a:not(.nav-cta) {
  opacity: .85;
  transition: opacity .2s ease;
}

.site-nav > a:not(.nav-cta):hover {
  opacity: 1;
}

.nav-cta {
  padding: 11px 15px;
  border: 1px solid currentColor;
  border-radius: 99px;
}

.nav-cta span {
  margin-left: 6px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 5px;
  font: 500 12px "DM Mono", monospace;
}

.language-switcher a {
  opacity: .48;
}

.language-switcher a.is-active {
  opacity: 1;
}

.nav-toggle {
  display: none;
  padding: 6px;
  border: 0;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
}


/* =========================================================
   04. HERO
   ========================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  height: min(900px, 100svh);
  min-height: 680px;
  overflow: hidden;
  color: #fff;
}

.hero-video,
.hero-fallback,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: 0;
  object-fit: cover;
}

.hero-fallback {
  z-index: -1;
  background: linear-gradient(135deg, #313a31, #677262 55%, #c6d09e);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 12, 8, .75), rgba(8, 12, 8, .22) 60%, rgba(8, 12, 8, .4)),
    linear-gradient(0deg, rgba(8, 12, 8, .5), transparent 45%);
}

.hero-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
  will-change: transform;
}

.hero-orb--one {
  width: 43vw;
  height: 43vw;
  right: -17vw;
  top: 9vh;
  background: rgba(205, 220, 115, .20);
  mix-blend-mode: screen;
  animation: orbFloat 15s ease-in-out infinite;
}

.hero-orb--two {
  width: 18vw;
  height: 18vw;
  right: 20vw;
  bottom: -10vw;
  background: rgba(255, 255, 255, .10);
  animation: orbFloatReverse 11s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 56px), 930px);
  margin: 110px auto 0;
}

.hero h1 {
  max-width: 900px;
  margin: 20px 0 25px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .94;
  letter-spacing: -.075em;
}

.hero h1 em {
  font-weight: 400;
}

.hero-lead {
  width: min(100%, 610px);
  color: rgba(255, 255, 255, .87);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}

.hero-meta {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  font: 500 10px "DM Mono", monospace;
  letter-spacing: .08em;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #171b17;
}

.hero-fallback,
.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-fallback {
  z-index: 0;
  background-color: #171b17;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-video {
  z-index: 1;
  display: block;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-overlay {
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(14, 18, 14, 0.84) 0%,
      rgba(14, 18, 14, 0.70) 38%,
      rgba(14, 18, 14, 0.48) 72%,
      rgba(14, 18, 14, 0.58) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 13, 10, 0.24) 0%,
      rgba(10, 13, 10, 0.08) 45%,
      rgba(10, 13, 10, 0.46) 100%
    );
  pointer-events: none;
}

.hero-orb {
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
}

@media (max-width: 700px) {
  .hero-video {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(14, 18, 14, 0.88) 0%,
        rgba(14, 18, 14, 0.74) 68%,
        rgba(14, 18, 14, 0.66) 100%
      ),
      linear-gradient(
        180deg,
        rgba(10, 13, 10, 0.28) 0%,
        rgba(10, 13, 10, 0.12) 45%,
        rgba(10, 13, 10, 0.52) 100%
      );
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}


/* =========================================================
   05. MEIST
   ========================================================= */

.rp-intro {
  position: relative;
  overflow: hidden;
  padding: 130px 0;
  background: #f4f2ee;
}

.rp-intro::before,
.rp-intro::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

.rp-intro::before {
  width: clamp(220px, 22vw, 370px);
  height: clamp(220px, 22vw, 370px);
  right: 8%;
  top: 15%;
  background: rgba(205, 220, 115, .38);
  animation: rpIntroOrbOne 18s ease-in-out infinite;
}

.rp-intro::after {
  width: clamp(120px, 11vw, 180px);
  height: clamp(120px, 11vw, 180px);
  left: 45%;
  bottom: -86px;
  background: rgba(29, 33, 29, .06);
  animation: rpIntroOrbTwo 13s ease-in-out infinite;
}

.rp-intro__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 2fr);
  gap: 64px;
  align-items: start;
}

.rp-intro__label {
  padding-top: 11px;
}

.rp-intro__label span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #74716b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rp-intro__label span::before {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: currentColor;
}

.rp-intro h2 {
  position: relative;
  max-width: 820px;
  margin: 0;
  color: #1f2520;
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.rp-intro h2 em {
  color: #718063;
  font-style: normal;
}

.rp-intro h2 strong {
  font-weight: 700;
}

.rp-intro__text {
  position: relative;
  max-width: 670px;
  margin-top: 32px;
  color: #5d615c;
  font-size: 18px;
  line-height: 1.72;
}


/* =========================================================
   06. TEENUSED
   ========================================================= */

.services-section {
  background: var(--sand);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 294px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

.service-card:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-7px);
}

.service-card--accent {
  background: var(--lime);
}

.service-card--accent:hover {
  background: #b9ca55;
  color: var(--ink);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  height: 92px;
}

.service-card h3 {
  max-width: 290px;
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -.05em;
}

.service-card p {
  display: flex;
  align-items: flex-end;
  min-height: 70px;
  max-width: 290px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.service-card__cta:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}


/* =========================================================
   07. MIKS MEIE
   ========================================================= */

.rp-why {
  padding: 145px 0 150px;
  background: var(--ink);
  color: #fff;
}

.rp-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 1.12fr);
  gap: clamp(70px, 10vw, 170px);
  align-items: start;
}

.rp-why__label {
  margin: 0 0 34px;
  color: rgba(255, 255, 255, .48);
}

.rp-why__text {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: clamp(50px, 4.8vw, 76px);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -.07em;
}

.rp-why__text p {
  margin: 0;
}

.rp-why__text em {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  line-height: .95;
}

.rp-why__right {
  padding-top: 5px;
}

.rp-why__items {
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.rp-why__item {
  padding: 34px 0 35px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.rp-why__item h2 {
  margin: 0 0 11px;
  color: #fff;
  font-size: clamp(23px, 1.75vw, 29px);
  line-height: 1.12;
  letter-spacing: -.055em;
}

.rp-why__item p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 16px;
  line-height: 1.68;
}


/* =========================================================
   08. TEHTUD TÖÖD / GALERII
   ========================================================= */

.rp-projects {
  padding: 135px 0;
  background: var(--dark-section);
  color: #fff;
}

.rp-projects__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 70px;
  align-items: start;
  margin-bottom: 66px;
}

.rp-projects__label {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .5);
}

.rp-projects__heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 5vw, 76px);
  line-height: .98;
  letter-spacing: -.07em;
}

.rp-projects__intro {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 18px;
  line-height: 1.65;
}

.rp-project-slider__toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.rp-project-slider__count {
  color: rgba(255, 255, 255, .58);
  font: 500 11px "DM Mono", monospace;
  letter-spacing: .08em;
}

.rp-project-slider__controls {
  display: flex;
  gap: 9px;
}

.rp-project-slider__button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.rp-project-slider__button:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  transform: scale(1.04);
}

.slider-viewport {
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}

.project-slide {
  min-width: 100%;
  display: grid;
  opacity: .64;
  transform: scale(.985);
  transition: opacity .7s ease, transform .7s ease;
}

.project-slide:first-child {
  opacity: 1;
  transform: scale(1);
}

.rp-project-slide {
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .65fr);
  gap: 28px;
  align-items: end;
}

.rp-project__compare {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: #303630;
  user-select: none;
}

.rp-project__after,
.rp-project__before {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-project__after {
  position: absolute;
  inset: 0;
}

.rp-project__before-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--compare-position);
  overflow: hidden;
}

.rp-project__before {
  width: 100%;
  max-width: none;
}

.rp-project__divider {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--compare-position);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}

.rp-project__divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.rp-project__range {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.rp-project__tag {
  position: absolute;
  z-index: 2;
  top: 18px;
  padding: 8px 11px;
  background: rgba(29, 33, 29, .78);
  color: #fff;
  font: 600 10px "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rp-project__tag--before {
  left: 18px;
}

.rp-project__tag--after {
  right: 18px;
}

.rp-project-slide__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 16px;
}

.rp-project-slide__copy p {
  margin: 0 0 16px;
  color: var(--lime);
  font: 500 11px "DM Mono", monospace;
}

.rp-project-slide__copy h3 {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(29px, 3.1vw, 48px);
  line-height: 1;
  letter-spacing: -.06em;
}

.rp-project-slide__copy span {
  color: rgba(255, 255, 255, .65);
  line-height: 1.6;
}

.slider-dots {
  display: flex;
  gap: 7px;
  margin: 25px 0;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  cursor: pointer;
}

.slider-dots button.is-active {
  background: var(--lime);
  transform: scale(1.35);
}


/* =========================================================
   09. TÖÖ KÄIK
   ========================================================= */

.rp-process {
  position: relative;
  overflow: hidden;
  padding: 145px 0 130px;
  background:
    radial-gradient(circle at 78% 16%, rgba(205, 220, 115, .45), transparent 23%),
    radial-gradient(circle at 102% 55%, rgba(29, 33, 29, .055), transparent 30%),
    linear-gradient(180deg, #f7f4ef 0%, #ece8df 100%);
}

.rp-process::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -330px;
  top: 8%;
  border: 1px solid rgba(29, 33, 29, .09);
  border-radius: 50%;
  pointer-events: none;
}

.rp-process::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: 6%;
  bottom: -150px;
  border-radius: 50%;
  background: rgba(205, 220, 115, .23);
  filter: blur(2px);
  pointer-events: none;
}

.rp-process .container {
  position: relative;
  z-index: 1;
}

.rp-process__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 70px;
  margin-bottom: 64px;
}

.rp-process__label {
  margin-bottom: 18px;
  color: rgba(29, 33, 29, .52);
}

.rp-process__heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: .94;
  letter-spacing: -.08em;
}

.rp-process__intro {
  max-width: 390px;
  margin: 0;
  color: rgba(29, 33, 29, .62);
  font-size: 18px;
  line-height: 1.65;
}

.rp-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.rp-process-card {
  position: relative;
  min-height: 330px;
  padding: 72px 30px 34px;
  border: 1px solid rgba(29, 33, 29, .14);
  border-radius: 8px;
  background: rgba(246, 243, 238, .68);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .35s cubic-bezier(.22, .61, .36, 1),
    background .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.rp-process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  opacity: .7;
}

.rp-process-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -76px;
  bottom: -82px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(205, 220, 115, .78);
  transition:
    transform .45s cubic-bezier(.22, .61, .36, 1),
    background .35s ease;
}

.rp-process-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, .92);
  border-color: rgba(29, 33, 29, .22);
  box-shadow: 0 26px 58px rgba(29, 33, 29, .15);
}

.rp-process-card:hover::after {
  transform: scale(1.22);
  background: rgba(205, 220, 115, .9);
}

.rp-process-card--active {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 22px 48px rgba(29, 33, 29, .11);
  transform: translateY(-14px);
}

.rp-process-card--active::after {
  transform: none;
  background: rgba(205, 220, 115, .78);
}

.rp-process-card--active:hover {
  transform: translateY(-18px);
}

.rp-process-card--active:hover::after {
  transform: scale(1.22);
  background: rgba(205, 220, 115, .9);
}

.rp-process-card__number {
  position: absolute;
  z-index: 2;
  right: 36px;
  bottom: 32px;
  color: #9cad4a;
  font: 800 36px "DM Mono", monospace;
  line-height: 1;
  letter-spacing: -.08em;
  transition:
    transform .45s cubic-bezier(.22, .61, .36, 1),
    color .25s ease;
}

.rp-process-card:hover .rp-process-card__number {
  color: #8fa33b;
  transform: translate(-4px, -4px) scale(1.04);
}

.rp-process-card__label,
.rp-process-card h3,
.rp-process-card__text {
  position: relative;
  z-index: 1;
}

.rp-process-card__label {
  margin: 0 0 14px;
  color: var(--lime-dark);
  font: 700 11px "DM Mono", monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rp-process-card h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.02;
  letter-spacing: -.065em;
}

.rp-process-card__text {
  max-width: 285px;
  margin: 0;
  color: rgba(29, 33, 29, .62);
  font-size: 15px;
  line-height: 1.72;
}

.rp-process-card__text p {
  margin: 0;
}

.rp-process-card__text p + p {
  margin-top: 10px;
}

.rp-process__trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  padding: 24px 28px;
  border: 1px solid rgba(29, 33, 29, .12);
  border-radius: 10px;
  background: rgba(246, 243, 238, .72);
  box-shadow: 0 20px 50px rgba(29, 33, 29, .08);
}

.rp-process-trust-item {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 0 22px;
  border-right: 1px solid rgba(29, 33, 29, .13);
}

.rp-process-trust-item:first-child {
  padding-left: 0;
}

.rp-process-trust-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.rp-process-trust-item > span {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(205, 220, 115, .34);
  color: #8fa33b;
  font-size: 19px;
  line-height: 1;
}

.rp-process-trust-item > span i {
  display: block;
  line-height: 1;
}

.rp-process-trust-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.rp-process-trust-item p {
  margin: 0;
  color: rgba(29, 33, 29, .62);
  font-size: 13px;
  line-height: 1.4;
}


/* =========================================================
   10. KONTAKT
   ========================================================= */

.contact-section {
  padding: 145px 0;
  background: var(--lime);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 9vw;
}

.contact-copy h2 {
  margin: 15px 0 27px;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.03;
  letter-spacing: -.065em;
}

.contact-copy h2 em {
  font-weight: 400;
}

.contact-copy > p:not(.section-index) {
  max-width: 590px;
  font-size: 17px;
  line-height: 1.75;
}

.team-list {
  max-width: 580px;
  margin: 45px 0;
  border-top: 1px solid rgba(29, 33, 29, .3);
}

.team-list > div {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(29, 33, 29, .3);
}

.team-list p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.team-list strong {
  font-size: 15px;
}

.team-list small {
  color: rgba(29, 33, 29, .65);
  font-size: 12px;
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 800;
}

.contact-direct a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form {
  align-self: start;
  padding: 34px;
  background: var(--paper);
}

.form-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  font: 500 10px "DM Mono", monospace;
  letter-spacing: .08em;
}

.form-head small {
  color: var(--muted);
  font: 400 10px "DM Mono", monospace;
  letter-spacing: 0;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
}

.form-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}


/* =========================================================
   11. FOOTER
   ========================================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 0 0 22px;
  background: #171b17;
  color: #fff;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.site-footer .footer-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.site-footer .footer-glow--one {
  width: 520px;
  height: 520px;
  top: -300px;
  right: -130px;
  background: rgba(205, 220, 115, 0.19);
}

.site-footer .footer-glow--two {
  width: 320px;
  height: 320px;
  bottom: -230px;
  left: -160px;
  background: rgba(112, 130, 104, 0.14);
}

/* Neli otsest ja alati võrdse laiusega veergu. */
.site-footer .container > .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 72px);
  align-items: start;
  width: 100%;
  padding: 68px 0 60px;
}

.site-footer .footer-card {
  min-width: 0;
}

.site-footer .footer-eyebrow {
  min-height: 16px;
  max-width: none;
  margin: 0 0 24px;
  color: var(--lime);
  font: 500 10px/1.6 "DM Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer .footer-eyebrow--spacer {
  visibility: hidden;
}

.site-footer .brand--footer {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.site-footer .brand--footer .brand-text {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.site-footer .footer-description {
  max-width: 270px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer .footer-company-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 34px;
}

.site-footer .footer-company-contact .footer-eyebrow {
  margin-bottom: 15px;
}

.site-footer .footer-company-contact a,
.site-footer .footer-company-contact span,
.site-footer .footer-person a,
.site-footer .footer-role {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer .footer-company-contact a,
.site-footer .footer-company-contact span {
  margin-top: 7px;
}

.site-footer .footer-person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer .footer-person strong {
  margin: 0 0 7px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.site-footer .footer-role {
  min-height: 20px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.47);
}

.site-footer .footer-person a {
  margin-top: 7px;
  transition: color 0.2s ease;
}

.site-footer .footer-company-contact a:hover,
.site-footer .footer-person a:hover,
.site-footer .footer-bottom a:hover {
  color: var(--lime);
}

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.4);
  font: 400 10px/1.5 "DM Mono", monospace;
}

.site-footer .footer-bottom a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (max-width: 980px) {
  .site-footer .container > .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 56px;
  }
}

@media (max-width: 620px) {
  .site-footer .container > .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 50px 0 40px;
  }

  .site-footer .footer-card {
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-footer .footer-company {
    padding-top: 0;
    border-top: 0;
  }

  .site-footer .footer-person .footer-eyebrow {
    display: none;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* =========================================================
   12. ANIMATSIOONID
   ========================================================= */

.reveal {
  opacity: 0;
  transition:
    opacity .75s ease,
    transform .75s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(34px);
}

.reveal-left {
  transform: translateX(-34px);
}

.reveal-right {
  transform: translateX(34px);
}

.reveal-fade {
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(25px);
  animation: heroIn .8s cubic-bezier(.22, .61, .36, 1) forwards;
}

.hero-reveal:nth-child(1) {
  animation-delay: .2s;
}

.hero-reveal:nth-child(2) {
  animation-delay: .32s;
}

.hero-reveal:nth-child(3) {
  animation-delay: .44s;
}

.hero-reveal:nth-child(4) {
  animation-delay: .56s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-7vw, 4vw, 0) scale(1.16);
  }
}

@keyframes orbFloatReverse {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(4vw, -3vw, 0) scale(.78);
  }
}

@keyframes rpIntroOrbOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-42px, 25px, 0) scale(1.12);
  }
}

@keyframes rpIntroOrbTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(32px, -24px, 0) scale(.82);
  }
}


/* =========================================================
   13. RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr;
  }

  .footer-people {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1000px) {
  .rp-process {
    padding: 105px 0;
  }

  .rp-process__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .rp-process__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .rp-process-card--active {
    transform: none;
  }

  .rp-process-card--active:hover {
    transform: translateY(-12px);
  }

  .rp-process__trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .rp-process-trust-item {
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(29, 33, 29, .13);
  }

  .rp-process-trust-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .section {
    padding: 95px 0;
  }

  .site-header {
    padding: 17px 20px;
  }

  .site-header.is-scrolled {
    padding: 12px 20px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 2;
  }

  .site-nav {
    position: absolute;
    inset: 0 0 auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
    padding: 85px 22px 25px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    transform: translateY(-110%);
    transition: transform .35s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .nav-cta {
    margin-top: 8px;
  }

  .language-switcher {
    margin: 6px 0 0;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    width: calc(100% - 40px);
    margin-top: 80px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .section-heading > p {
    margin: 0;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card__top {
    height: 72px;
  }

  .service-card p {
    min-height: auto;
  }

  .rp-why {
    padding: 100px 0;
  }

  .rp-why__grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .rp-why__text {
    max-width: 700px;
    font-size: clamp(48px, 8vw, 68px);
  }

  .rp-why__item {
    padding: 30px 0;
  }

  .rp-projects {
    padding: 100px 0;
  }

  .rp-projects__heading,
  .rp-project-slide {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rp-projects__heading {
    margin-bottom: 48px;
  }

  .rp-project__compare {
    min-height: min(64vw, 520px);
  }

  .rp-project-slide__copy {
    padding-bottom: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-people {
    grid-template-columns: 1fr;
    grid-column: auto;
    gap: 15px;
  }
}

@media (max-width: 620px) {
  .rp-process {
    padding: 86px 0;
  }

  .rp-process::before {
    width: 460px;
    height: 460px;
    right: -300px;
    top: 4%;
  }

  .rp-process__heading {
    margin-bottom: 38px;
  }

  .rp-process__heading h2 {
    font-size: clamp(42px, 13vw, 58px);
    line-height: .98;
  }

  .rp-process__intro {
    font-size: 16px;
  }

  .rp-process__steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rp-process-card {
    min-height: 260px;
    padding: 28px 26px 30px;
  }

  .rp-process-card__number {
    right: 31px;
    bottom: 29px;
    font-size: 32px;
  }

  .rp-process-card h3 {
    font-size: 29px;
  }

  .rp-process__trust {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .rp-process-trust-item,
  .rp-process-trust-item:nth-last-child(-n + 2) {
    padding: 16px 0;
    border-bottom: 1px solid rgba(29, 33, 29, .13);
  }

  .rp-process-trust-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .rp-container {
    width: min(100% - 36px, 1180px);
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-orb--one {
    width: 85vw;
    height: 85vw;
    right: -36vw;
  }

  .hero-orb--two {
    display: none;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-meta {
    left: 20px;
    right: 20px;
    justify-content: center;
  }

  .hero-meta > span:first-child,
  .hero-meta > span:last-child {
    display: none;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 39px;
  }

  .rp-intro {
    padding: 80px 0;
  }

  .rp-intro::before {
    width: 220px;
    height: 220px;
    right: -70px;
    top: 13%;
  }

  .rp-intro::after {
    width: 115px;
    height: 115px;
    left: 40%;
    bottom: -56px;
  }

  .rp-intro__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .rp-intro__label {
    padding-top: 0;
  }

  .rp-intro__text {
    margin-top: 24px;
    font-size: 16px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 250px;
  }

  .service-card__top {
    height: auto;
    margin-bottom: 15px;
  }

  .rp-why {
    padding: 78px 0 82px;
  }

  .rp-why__label {
    margin-bottom: 24px;
  }

  .rp-why__text {
    max-width: 100%;
    font-size: clamp(42px, 12vw, 54px);
    line-height: 1.02;
    letter-spacing: -.065em;
  }

  .rp-why__text em {
    margin-top: 5px;
    line-height: .98;
  }

  .rp-why__item {
    padding: 26px 0 27px;
  }

  .rp-why__item h2 {
    margin-bottom: 9px;
    font-size: 23px;
    line-height: 1.14;
  }

  .rp-why__item p {
    font-size: 15px;
    line-height: 1.65;
  }

  .rp-projects {
    padding: 82px 0;
  }

  .rp-projects__heading h2 {
    font-size: 48px;
  }

  .rp-projects__intro {
    font-size: 16px;
  }

  .rp-project-slider__toolbar {
    margin-bottom: 15px;
  }

  .rp-project-slider__button {
    width: 44px;
    height: 44px;
  }

  .rp-project__compare {
    min-height: 320px;
  }

  .rp-project__tag {
    top: 12px;
    padding: 7px 9px;
  }

  .rp-project__tag--before {
    left: 12px;
  }

  .rp-project__tag--after {
    right: 12px;
  }

  .rp-project-slide__copy h3 {
    font-size: 34px;
  }

  .contact-section {
    padding: 95px 0;
  }

  .contact-form {
    padding: 25px;
  }

  .footer-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 46px 0;
  }

  .footer-language {
    grid-column: auto;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-bottom a {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .slider-track {
    transition: none;
  }
}

.contact-form__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
}

.contact-form select {
  min-height: 45px;
  padding: 10px 28px 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background-color: transparent;
  color: var(--ink);
  cursor: pointer;
}

.contact-form select:focus {
  border-color: var(--ink);
}

.contact-form input:user-invalid,
.contact-form select:user-invalid,
.contact-form textarea:user-invalid {
  border-color: #a33b32;
}

.captcha-panel {
  min-width: 0;
  margin: 4px 0 20px;
  padding: 18px;
  border: 0;
  background: rgba(29, 33, 29, .045);
}

.captcha-panel legend {
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.captcha-help {
  margin: 5px 0 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.captcha-panel__content {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  gap: 18px;
  align-items: end;
}

.captcha-challenge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-challenge img {
  display: block;
  width: auto;
  max-width: 150px;
  height: 50px;
  border: 0;
  background: #fff;
}

.captcha-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 700 11px "Manrope", sans-serif;
  cursor: pointer;
  transition: background-color .2s ease;
}

.captcha-refresh [aria-hidden="true"] {
  font-size: 19px;
  line-height: 1;
  transition: transform .2s ease;
}

.captcha-refresh:hover,
.captcha-refresh:focus-visible {
  background: rgba(29, 33, 29, .08);
}

.captcha-refresh:hover [aria-hidden="true"] {
  transform: rotate(25deg);
}

.captcha-refresh:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.contact-form .captcha-entry {
  gap: 6px;
  margin: 0;
}

.captcha-entry > span {
  font-size: 11px;
}

.contact-form .captcha-entry input {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid transparent;
  background: var(--paper);
}

.contact-form .captcha-entry input:focus {
  border-color: var(--ink);
}

.contact-form .captcha-entry input::placeholder {
  color: var(--muted);
  opacity: .8;
}

.contact-form .privacy-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 2px 0 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.privacy-check input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  accent-color: var(--ink);
}

.form-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.form-status.is-success {
  color: #365b32;
  background: rgba(205, 220, 115, .28);
}

.form-status.is-error {
  color: #8b302a;
  background: rgba(163, 59, 50, .08);
}

.contact-form .btn-dark {
  cursor: pointer;
}

.contact-form .btn-dark:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

@media (max-width: 560px) {
  .contact-form__columns,
  .captcha-panel__content {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .captcha-panel {
    padding: 16px;
  }

  .captcha-challenge {
    justify-content: space-between;
  }

  .captcha-refresh {
    padding-right: 8px;
    padding-left: 8px;
  }
}
